Dispatching Custom Events in AS3 with data or object
detail here to send custom information or data to the listener object when a custom Event is going to be dispatched. So here is what i have done to achieve the same The flash new Event mechanism provides you a facility to create a new event and the default constructor call is something like this Event(type:String, bubbles:Boolean = false, cancelable:Boolean = false) so there is no by default parameter to send information across the dispatcher and listener objects ( Other than using event.target.*** method on listener end). Following is the code i have done for overcome this Create a CustomEvent.as Class as following package eventsSystem { import flash.events.Event; public class CustomEvent extends Event { public static const ONLOADED:String = “OnLoaded”; //———– Define your custom Event string constant public var data:*; //————- Define a data variable of * type to hold any kind of data object //———— Constructor public function CustomEvent(type:String, data:*) { this.data= dat...