AS3: How to dispatch from the document class?

Posted by redconservatory on Stack Overflow See other posts from Stack Overflow or by redconservatory
Published on 2010-04-15T14:42:02Z Indexed on 2010/04/15 16:43 UTC
Read the original article Hit count: 158

Filed under:
|
|

I have a pretty good handle on dispatching from classes other than the Document Class, but what happens when I want to dispatch an event from the Document class and have other classes listen to the document class broadcast?

It seems like there are several ways to approach this (i.e using a Singleton, using composition, using MovieClip(root)) I was just wondering what people find is the "best practice" way to do this?

© Stack Overflow or respective owner

Related posts about as3

Related posts about document