Mega Code Archive

 
Categories / Flex / Components
 

When clicking a Button control, the Button control dispatches a click event

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:TextInput id="myInput" width="150" text=""/>     <mx:Button id="myButton" label="Copy Text" click="myText.text=myInput.text;"/>     <mx:TextArea id="myText" text="" width="150" height="20"/> </mx:Application>