See this thread:
http://stackoverflow.com/questions/792451/want-to-send-parameters-with-custom-dispatch-event
Incase they remove it,
public class YourEvent extends Event
{
public static const SOMETHING_HAPPENED: String = "somethingHappend";
public var data: Object;
public function YourEvent(type:String, date: Object, bubbles:Boolean=false, cancelable:Boolean=false)
{
data = this.data;
super(type, bubbles, cancelable);
}
override public function clone():Event
{
return new YourEvent (type, data, bubbles, cancelable);
}
}
Tech Reference: AS3
Leave a Reply