2 Replies Latest reply on Sep 15, 2009 10:31 AM by actionscriptDev

    Translation on the fly

      Hi there. I'm using the resource bundles to give multiple locales to my AIR application. I have a login window made with a popup panel, containing form elements made in ActionScript.

      // Sets labels
      labelUser.text = resourceManager.getString('language', 'LABEL_USER');
      labelPass.text = resourceManager.getString('language', 'LABEL_PASS');
      labelLang.text = resourceManager.getString('language', 'LABEL_LANG');

      And a ComboBox created to switch between languages.

      When I change the combobox the language changes in elements made in MXML but not in elements made in AS. Maybe something is wrong and I've to bind resources...

      Any idea on how to solve?