private function clickHandler(evt:Event):void
{
myText.text="button clicked";
myText.text+= "Event type: " + evt.type;
myText.text+= "Event Target: " + evt.target;
myText.text+= "Event Target ID: " + evt.target.id;
}
id="myText" text="click something please !"/>
label="Click Me"
click="clickHandler(event)"/>