Wow. That's a crazy amount of code for something so simple.
Here's what I use:
-------------------------------------------
import mx.events.EventDispatcher;
class net.stevensacks.utils.ObservableClip extends MovieClip
{
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;
function ObservableClip()
{
EventDispatcher.initialize(this);
}
}
-------------------------------------------
Just have your MovieClip classes extend ObservableClip instead of MovieClip and
you can addEventListener and dispatchEvent simply and easily.
:)
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders