...@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
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
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] Recur
> 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
__
4 matches
Mail list logo