Flash / Flex / ActionScript/Network/loaderInfo

Материал из Web эксперт
Перейти к: навигация, поиск

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...");
    }
  }
}