3 Replies Latest reply on Apr 30, 2009 10:24 AM by Gregory Lafrance

    resourceManager Vs resourceManager

    swallow_1

      hi,

       

      Can anyone please say the difference between these two ways of using in the localization.

       

      var resourceModuleURL:String = "locale/en_FR/en_FR_messages.swf";

       

      1.ResourceManager.getInstance().loadResourceModule(resourceModuleURL);

       

      2.resourceManager.loadResourceModule(resourceModuleURL);

       

      In my code im just using below approach to read the key/pair values.

       

      <mx:Label id="l1" height="24" text="{resourceManager.getString('messages','name')}" styleName="label" />

      <mx:Label id="l2" height="24" text="{resourceManager.getString('messages','user')}" styleName="label"/>

      <mx:Label id="l3" height="24" text="{resourceManager.getString('messages','password')}" styleName="label"/>

      <mx:Label id="l4" height="24" text="{resourceManager.getString('messages','confirmpassword')}" styleName="label"/>

       

      Both approaches are same.

       

      My application needs to support 8 different languages. So in that case which approach is better .

       

      Thanx a lot.

       

      selva.