sorry - jumped the gun - I worked it out with:

xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
     var xml:XML = new XML)e.target.data);
     function(xml);
});

________________________________________
From: Lehr, Theodore
Sent: Monday, March 29, 2010 7:31 AM
To: Flash Coders List
Subject: Recursive and e:Event

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

Reply via email to