Wednesday, April 8, 2009

Change the yes button label of Alert

Application to change the label of the alert button.

This application is developed using AIR, change the root and end tag to to work as flex application


<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
creationComplete="initApp()">

<mx:Script>
<![CDATA[
import mx.events.CloseEvent;
import mx.controls.Alert;
/* */
private function initApp():void
{
Alert.yesLabel = "yep";
Alert.noLabel = "nope";
Alert.show("Alert labels customization", "Aler", Alert.YES|Alert.NO, this, null, null, 1);
}
]]>
</mx:Script>
</mx:WindowedApplication>






No comments:

Post a Comment