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