Mega Code Archive

 
Categories / Flex / Event
 

Pass Event object to the submitForm() handler function and specifies it as type MouseEvent

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Script>         private function myEventHandler(event:MouseEvent):void {            trace("this is a test");         }       </mx:Script>     <mx:Button id="b1" label="Click Me" click="myEventHandler(event)" /> </mx:Application>