Aside from the typos, anonymous functions are the devil.

On Mon, Mar 29, 2010 at 8:09 AM, Merrill, Jason <
jason.merr...@bankofamerica.com> wrote:

> >>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: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] 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
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to