Hi list...

I have a singleton (let's say it's class a) which contains instances of two 
different classes, b and c.  Class B and C both extend Event Dispatcher.  

var b:B = new B();
var c:C = new C();

In c's constructor, a custom event is dispatched.  I want b to listen for it, 
but this doesn't work:
b.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

but this does:
c.addEventListener(CustomEvent.LISTEN_FOR_C, handler);

How can I have b listen for something dispatched by c?  Remember, they're both 
in class a.  I tried bubbles=true for the new custom event, but that doesn't 
work.

Thanks,
- Michael M.


_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to