1 Reply Latest reply on Mar 12, 2008 6:19 AM by Starlover_jacob

    Custom Alert button label

      How could I change the label of the standard Alert.OK Button to "accept" for example ?

      If I use Alert.show method its return an instance of Alert object but there is no attribute that could be used to set the label of a button showed in the Alert.

      Help me
      Thank you at all
        • 1. Re: Custom Alert button label
          Starlover_jacob Level 1
          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="horizontal">
          import mx.controls.Alert

          private function handleDefaultLabels():void
          Alert.show("This is an alert pop-up using default button labels",

          private function handleCustomLabels():void
          Alert.okLabel = "Sure"
          Alert.cancelLabel = "No Way"
          Alert.show("Tihs is an alert pop-up using custom button labels",
          <mx:Button label="Default Labels" click="handleDefaultLabels()" />
          <mx:Button label="Custom Labels" click="handleCustomLabels()" />