Event Bubbling
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" click="clickHandler(event)"> <mx:Script> private function clickHandler(event:Event):void { eventLog.text += "target=" + event.target.id + ", currentTarget=" + event.currentTarget.id + "\n\n"; } </mx:Script> <mx:VBox id="myContainer" click="clickHandler(event)"> <mx:Button label="myButton" id="myButton" click="clickHandler(event)"/> </mx:VBox> <mx:TextArea id="eventLog" height="110" width="50%"/> </mx:Application>