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