Look up eventDispatcher -

addEventListener can be added to any item that dispatches event - you can
make a class a dispatcher via mixins - import EventDispatcher, declare
addEventListener, removeEventListener and dispatchEvent as functions and
you're good to go.

The v2 components broadcast a variety of events. IF you check the docs
under events, you will see what events they dispatch and therefore, what
events you can subscribe to.



>
True or false (not a trick question, just a straight answer needed):
>
> The addEventListener method can only ever be called on a component ?
> e.g:
>
>      myButton.addEventListener("click", myFunction);
>
> ... and if "click" is one thing you can 'listen' for, what is the
> complete  list ?? (this might help me understand it a little better -
> hope this makes  sense - OOP newb here).
>
> Thanks,
> Stephen.
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to