Distinguishing Events Targeted at an Object from Events Targeted at That Object's Descendants
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) {
}
}
}
}
Related examples in the same category