responds to mouse clicks that occur over any object on the display list, but not over a vacant area of the Stage instance : stage « Development « Flash / Flex / ActionScript
responds to mouse clicks that occur over any object on the display list, but not over a vacant area of the Stage instance
package{ import flash.display.GradientType; import flash.display.Sprite; import flash.geom.Matrix; import flash.events.*; public class Main extends Sprite {
public function Main() {
stage.addEventListener(MouseEvent.CLICK, clickListener);
} private function clickListener (e:MouseEvent):void { if (e.eventPhase != EventPhase.AT_TARGET) {
}
}
}
}