RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Lehr, Theodore
...@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

RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread p...@ipauland.com
Far better to separate the event handling from the recursion altogether.   In the event handler get the XML, then pass it to the recursive routine. Don't pass an event to the recursive routine, pass the data/XML.   Generally with recursive code, when you run out of arguments to pass, you stop calli

Re: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Nathan Mynarcik
] 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 = ..;) then a recursive function like: function (parseXML(_xml:*) { ... parseXML(ixml); } worked fine but

RE: [Flashcoders] Recursive and e:Event

2010-03-29 Thread Keith Reinfeld
> I need to find a way to get around this can I call the function > without e:Event? Yes: function (parseXML(e:Event=null) { ... parseXML(ixml); } Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net __

[Flashcoders] Recursive and e:Event

2010-03-29 Thread Lehr, Theodore
I am having an issue trying to recursively go through some xml... When the xml was local (i.e. var newXml:XML = ..;) then a recursive function like: function (parseXML(_xml:*) { ... parseXML(ixml); } worked fine but when I try to pull it in from another file via: