Try changing your function to below:

function (parseXML(e:Event = null) {
       ...........
       parseXML(ixml);
}


------Original Message------
From: Lehr, Theodore
Sender: [email protected]
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
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
[email protected]
254.749.2525
www.mynarcik.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to