|
Full code after the jump.
The following example displays an Alert dialog and overrides the default values for the Alert.noLabel and Alert.yesLabel properties:
<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white" creationComplete="showAlert()">
<mx:Script> <![CDATA[ import mx.controls.Alert;
private var a:Alert;
private function showAlert():void { Alert.noLabel = "Non"; Alert.yesLabel = "Oui";
Alert.show("message goes here", "title goes here", Alert.NO Alert.YES); } ]]> </mx:Script>
<mx:Button label="Alert.show()" click="showAlert();" />
</mx:Application>