<?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>
