Mega Code Archive

 
Categories / Flex / Development
 

MXML Inline Tag

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">     <mx:TextInput id="myInput" width="150"/>     <mx:Label id="myLabel" width="150"/>     <mx:Button id="myButton"          label="Enter Text">         <mx:click>                              myLabel.text = myInput.text;//event.type;                 mx.controls.Alert.show(                     "Text Entered is:\n" + myInput.text,                     "Alert Box",                     mx.controls.Alert.OK                 );                    </mx:click>     </mx:Button> </mx:Application>