Display the current phase and current target's ID : Event Target « Event « Flex
- Flex
- Event
- Event Target
Display the current phase and current target's ID

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
private function showInfo(e:MouseEvent):void {
trace(e.eventPhase + ":" + e.currentTarget.id);
}
</mx:Script>
<mx:Button id="b1" label="Click Me" click="showInfo(event)" />
</mx:Application>
Related examples in the same category