1 Reply Latest reply on Jan 21, 2010 7:19 AM by iamfuric

    Locales

    rabinprithvi Level 2

      Hi,

       

      I came across a nice articles here for locales.

       

      http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization

       

      After implementing the locales, I want to customize it further.

       

      If I want to change some values in .properties file, I have to compile it again .

       

      Is it possible to load the .properties file like xml or text file and get the values directly.

        • 1. Re: Locales
          iamfuric

          This nice article states that :

           

          the MXML compiler autogenerates a subclass of ResourceBundle with a content Object containing the key/value pairs for those resources.

          It means you can't achieve what you want with built in  resource localization support.

          But, yes, you can  load properties  file by yourself  -you will have to parse it by yourself into Dictionary object.

           

          In this case I suggest to remove each

          <mx:Metadata>
                  [ResourceBundle("myResources")]
              </mx:Metadata>

          so Flex will not autogenerate his stuff and your swf/swc won't contain the files your  application doesn't use...