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

14 lines
434 B
Plaintext
Raw Normal View History

2010-02-18 21:58:13 +00:00
<?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>