Mega Code Archive

 
Categories / Flex / Components
 

Changing the default button labels on an Alert control

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="showAlert()">      <mx:Script>                      import mx.controls.Alert;               private function showAlert():void {                 Alert.noLabel = "Nooooo";                 Alert.yesLabel = "Yeeeeees";                   Alert.show("message","title",Alert.NO | Alert.YES);             }            </mx:Script>       <mx:Button label="Alert.show()" click="showAlert();" />   </mx:Application>