--- In [email protected], "Josh McDonald" <dzn...@...> wrote: > > Don't call "new EventDispatcher()", it won't be any real use. The main > reason you would want to create an instance of EventDispatcher itself is > when you're building a class that is an IEventDispatcher, but inherits from > a base class that is not an IEventDispatcher, because we don't have multiple > inheritance in AS3. When you do that, you need to use something like: > > private var myEventDispatcher : IEventDispatcher = new > EventDispatcher(this);
My experience with this is that occasionally that will run before the constructor and you'll get an error--it seems to be safer to put the assignment statement inside the constructor, even though it makes it a PIA to have boilerplate IEventDispatcher code that you copy in when you want to add event dispatching.

