To use the Alert control
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.controls.Alert; </mx:Script> <mx:TextInput id="myInput" width="150" text="" /> <mx:Button id="myButton" label="Copy Text" click="myText.text = myInput.text; Alert.show('Text Copied!', 'Alert Box', mx.controls.Alert.OK);" /> <mx:TextInput id="myText" /> </mx:Application>