Hi i've a problem..anibody can help me?
i created this class: public class CompleteEvent extends Event { private var array:ArrayCollection public function CompleteEvent(type:String, array:ArrayCollection) { super(type); this.array = array; } public override function clone():Event { return new CompleteEvent(type, array); } } the main class create the array through a socket connection within the socket listeners for Socket.DATA...in the method listeners dispatch the event... [Event(name="newEvent", type="CompleteEvent")] public class MainApp{ .... socket.addEventListeners(ProgressEvent.SOCKET_DATA, socketData); ... private function socketData(event:Event):void { ...some code to create array from server data... //dispatch event var dipsatcher:EventDispatcher = new EventDispatcher(); var ev:CompleteEvent = new CompleteEvent("newEvent", array); dispatcher.dispatchEvent(ev); } } and this other class listens for the event public class BasePanel extends Panel { private function dataEventHandler():void { trace("Array retrieved"); } public function BasePanel() { super(); this.addEventListener("newEvent", dataEventHandler); } } but not working the BasePanel class doesn't listen for the event.. thanks a lot Regards Lorenzo