8 Replies Latest reply on Apr 8, 2010 7:01 AM by Karthik@Chennai

    Regarding adding event listners to Custom Event class

    Karthik@Chennai

      Hi All,

      I have created an Custom Event Handler class code as follows...

       

      package

       

       

       

       

       

      TT.utils

      {

       

      import flash.events.Event;

       

       

      import mx.controls.Alert;

       

      public class HandleCustomEvent extends Event

      {

       

      // Public constructor.

       

       

      public function HandleCustomEvent(type:String)

      {

       

       

      // Call the constructor of the superclass.

       

       

      super(type);

      }

       

      // Override the inherited clone() method.

       

       

      override public function clone():Event

      {

       

      return new HandleCustomEvent(type);

      }

      }

      }

      By using the above class i have added an event listener in  Main Screen using systemManager and dispatched the same event in Popup Screen

      which is poped from main screen.Call back event listener function registered in Main screen does not executing

      Note: Above Main Movie from another Container movie using swf loader and Also using RSL for above class)

      regards,

      karthik