adding simple ui event example

This commit is contained in:
Dan Buch 2010-02-18 16:58:13 -05:00
parent c558d79ff7
commit 6acee59599

View File

@ -0,0 +1,13 @@
<?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>