Add mouse listener to the loader info : loaderInfo « Network « Flash / Flex / ActionScript






Add mouse listener to the loader info

 
package {
  import flash.display.Sprite;
  import flash.events.*;

  public class Main extends Sprite {
    public function Main (  ) {
      loaderInfo.sharedEvents.addEventListener(Event.MOUSE_LEAVE,
                                               mouseLeaveListener);
    }

    private function mouseLeaveListener (e:Event):void {
      trace("MouseEffect.mouseLeaveListener(  ) was invoked...");
    }
  }
}

        








Related examples in the same category