>>xmlLoader.addEventListener(Event.COMPLETE, function(e:event):viod {
>> var xml:XML = new XML)e.target.data);
>>function(xml);
>>});
Wow, that's nasty nasty nasty... and doesn't give you ANY compiler
errors eh? :)
Jason Merrill
Bank of America Global Learning
Learning & Performance Solutions
Join the Bank of America Flash Platform Community and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lehr,
Theodore
Sent: Monday, March 29, 2010 7:47 AM
To: Flash Coders List
Subject: [Flashcoders] RE: Recursive and e:Event
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
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders