So how would I pass in the xml? Where as now I am calling parseXML(xml) how do I pass it via:
addEventListener(Event.COMPLETE, parseXML); function parseXML(e:Event = null) { } ________________________________________ From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [nat...@mynarcik.com] Sent: Monday, March 29, 2010 8:06 AM To: Flash Coders List Subject: Re: [Flashcoders] Recursive and e:Event Try changing your function to below: function (parseXML(e:Event = null) { ........... parseXML(ixml); } ------Original Message------ From: Lehr, Theodore Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] Recursive and e:Event Sent: Mar 29, 2010 6:31 AM I am having an issue trying to recursively go through some xml... When the xml was local (i.e. var newXml:XML = <tag> ......;) then a recursive function like: function (parseXML(_xml:*) { ........... parseXML(ixml); } worked fine.... but when I try to pull it in from another file via: xmlLoader.load...... xmlLoader.addEventListener..... { parseXML(e); } function (parseXML(e:Event) { ........... parseXML(ixml); } It works fine the first time through and then I get an error on the first recursive call because ixml is not an e:Event.... I need to find a way to get around this.... can I call the function without e:Event? _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders