From the docs – <?xml version="1.0"?> <mx:Application
xmlns:mx="http://www.macromedia.com/2005/mxml"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.CloseEvent;
[Embed(source="alertIcon.jpg")]
[Bindable]
public var iconSymbol:Class; private function alertListener(eventObj:CloseEvent):void
{ // Check to see if the OK
button was pressed. if (eventObj.detail==Alert.OK)
{ myText.text =
myInput.text; } } ]]> </mx:Script> <mx:TextInput
id="myInput" width="150" text=""/> <mx:Button id="myButton"
label="Copy Text" click='Alert.show("Copy
Text?", "Alert", Alert.OK | Alert.CANCEL,
this, alertListener, iconSymbol, Alert.OK );'/> <mx:TextInput
id="myText"/> </mx:Application> From: Hi flexcoders YAHOO! GROUPS LINKS
|