I think the issue is that you must add the event listener before the
event is dispatched.
When you call:
var mm = new MyMessage;

The MyMessage.DONE event is immediately fired.
But mm only starts listening to that event when you reach the next line of code:
mm.addEventListener(MyMessage.DONE, theComplete);

That's why delaying the call to the dispatch method works.

-- 
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to