box-o-sand/flex-practice/03b3-simple-ui-event/Example1.mxml

14 lines
434 B
XML

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function myHandleClick(event:Event):void
{
Alert.show("Clicked!");
}
]]>
</mx:Script>
<mx:Button id="myButton" label="Create Click Event" click="myHandleClick(event)" />
</mx:Application>