1 Reply Latest reply on Jun 1, 2009 8:19 AM by Gaurav J

    not work for Alert window on Locale

    master.card Level 1

      Hi,

       

      I try to support my web sire with Locale, it work fine with title, text and label.

       

      like

      <mx:Label

       

      verticalCenter="middle" text="{resourceManager.getString('lang', 'comm.operations')}:" fontWeight="bold" />

       

      But it does not work in the popup Alert window.

       

      Alert.show(

      "{resourceManager.getString('lang', 'login.salt.msg')}");

       

      May I know how to support it?

       

       

      thanks

        • 1. Re: not work for Alert window on Locale
          Gaurav J Adobe Employee

          You are probably calling the Alert.show() from the <mx:Script> block. The Script block is for actionscript code, but the curly braces binding sytax is for mxml.

           

           

          You can create the binding for resourceManager.getString('lang', 'login.salt.msg') to a variable using <mx:Binding> and then use that variable in the call to Alert.show().

           

          HTH,

           

          Gaurav Jain

          Flex SDK Team