Click event example (MXML)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Button label="Click button!" click="clickFunction(event)" />
<mx:Script>
import mx.controls.Alert;
public function clickFunction(event:Event):void
{
var message:String = "you clicked me! ";
message += event.target.label;
Alert.show(message,"Event Test");
}
</mx:Script>
</mx:Application>
Related examples in the same category