adding simple ui event example
This commit is contained in:
parent
c558d79ff7
commit
6acee59599
13
03b3-simple-ui-event/Example1.mxml
Normal file
13
03b3-simple-ui-event/Example1.mxml
Normal 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>
|
Loading…
Reference in New Issue
Block a user