That was already in the sample code I posted.

Here's another example:

import mx.events.EventDispatcher;

class com.muzakdeezign.samples.Test extends MovieClip {

 // decorate class with EventDispatcher
 private static var dispatcherInit = 
EventDispatcher.initialize(com.muzakdeezign.samples.Test.prototype);

 // declare EvenDispatcher methods
 public var addEventListener:Function;
 public var removeEventListener:Function;
 public var dispatchEvent:Function;

}

regards,
Muzak

----- Original Message ----- 
From: "Stephen Ford" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 05, 2007 4:48 AM
Subject: Re: [Flashcoders] MovieClipLoader ...


Thanks Muzak,How to best initialize EventDispatcher outside the constructor via 
a static property ?How would you do 
this?_______________________________________________


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to