Long MXML Inline Event
<?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" click=" myLabel.text = myInput.text;//event.type; mx.controls.Alert.show( 'Text Entered is:\n'+myInput.text, 'Alert Box', mx.controls.Alert.OK );" /> </mx:Application>