3 Replies Latest reply on Jun 7, 2009 8:56 AM by master.card

    Is there  issue on Locale in the ViewStack?

    master.card Level 1

      Hi,

       

      I create an application with mutiple-view using ViewStack to control. Index = 0 is login page, index =1 is home page.

      and I control locale in the login page with runntime, like

      resourceManager.localeChain = [

      "es_ES"];

       

       

      and it work well.

       

      After login, go to home page, locale still keep default setting (english); does not switch to spanish. I am just wondering if it is ViewStatck issue on it?

       

       

      Thanks

        • 1. Re: Is there  issue on Locale in the ViewStack?
          *Prashant Shelke* Level 4

          try with turning on one flag for ViewStack, "creationPolicy=all" hope this will work for you.

          • 2. Re: Is there  issue on Locale in the ViewStack?
            master.card Level 1

            Thank you for your suggestion. But is does not work. Are there other ways?

             

            thanks

            • 3. Re: Is there  issue on Locale in the ViewStack?
              master.card Level 1

              Sorry, it work for lable and text, but it seem some issues for image.

               

               

              it configuration like:

               

              English;

              menu.admin.down=Embed("assets/en/administrator_down.gif")

               

              Koren

              menu.admin.down=Embed("assets/ko/administrator_down.gif")

               

               

               

              My button have skin:

               

               

               

               

               

               

               

               

               

               

               

               

              <mx:Button id="admin_btn" upSkin="@Resource(key='menu.admin.up', bundle='lang')"

              overSkin="

              @Resource(key='menu.admin.down', bundle='lang')" downSkin="@Resource(key='menu.admin.down', bundle='lang')"

              focusSkin="

              @Resource(key='menu.admin.down', bundle='lang')"

              selectedUpSkin="

              @Resource(key='menu.admin.down', bundle='lang')"

              selectedDownSkin="

              @Resource(key='menu.admin.down', bundle='lang')"

              selectedOverSkin="

              @Resource(key='menu.admin.down', bundle='lang')" />

               

              It cannot swith to other language icons.

               

              For label I apply :

              label="

              {resourceManager.getString('lang', 'menu.lang')}"

               

              But for image. I can not use it like;

              upSkin="{resourceManager.getString('lang', 'menu.lang')}"

               

              May i know how to use it?

               

               

              Thanks,