Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7705749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:56:21+00:00 2026-05-31T23:56:21+00:00

Some places in my flex app, I use ResourceManager.getInstance().getString, and other places I use

  • 0

Some places in my flex app, I use ResourceManager.getInstance().getString, and other places I use mxml @Resource tag to retrieve resource properties dynamically loaded from ResourceManager.

resourceManager.loadResourceModule(resourceModuleURL);

But only strings from ResourceManager.getInstance().getString show proper locale based values, while the @Resource tag only returns values from en_US resource. I guess it is because en_US is what I compiled with (-locale=en_US ).

So I am wondering if I am using a dynamicly-loaded resource, do I have to abandon the @Resource tag and use ResourceManager.getInstance().getString ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:56:22+00:00Added an answer on May 31, 2026 at 11:56 pm

    When you compile, you need to include a list of comma-separated locales:

    -locale=en_US,es_ES

    That should allow @Resource to then be used for localization.

    More detail in the help documentation:

    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f3a.html#WS2db454920e96a9e51e63e3d11c0bf6119c-7fef

    Excerpt:

    To be able to change the locale at run time without using resource
    modules, you compile all the available locales into the application at
    compile time by including them as part of the locale option. This
    compiler option takes a comma-separated list of locales. If you add a
    second locale, such as es_ES, change the locale option to the
    following:

    -locale=en_US,es_ES

    EDIT:

    To separate the locales into separate SWF files, try creating Resource Modules. Here’s an excerpt:

    Resource modules are SWF files, separate from your application SWF
    file, that contain resources bundles for a single locale. Your
    application can preload one or more resource modules as it starts up,
    before it displays its user interface. It can also load resource
    modules later, such as in response to the user selecting a new locale.
    The ResourceManager interacts with all resource bundles the same,
    whether the bundles it manages were originally compiled into the
    application or loaded from resource modules.

    They’re great to use for localization, as you can separate each language into different swf files.

    Resource modules can be a better approach to localization than
    compile-time resources because you externalize the resource modules
    that can be loaded at run time. This creates a smaller application SWF
    file, but then requires that you load a separate SWF file for each
    resource module that you use. The result can be an increased number of
    network requests and an aggregate application size that is larger than
    if you compiled the locale resources into the application. However, if
    you have many locales, then loading them separately should save
    resources in the long run.

    Here’s a link explaining resource modules:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7f3c.html

    My recommendation is to create the Resource Modules you need to use as localization as SWFs, and then either compile them into the application at compile time, or dynamically lead each ResourceModule at run-time, so you have access to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an embedded app. In some places, I use std::ostringstream a lot,
I'm working on a class-based php web app. I have some places where objects
Some people load the google places api with a client parameter, example : <script
I am trying to use load() to place some html into a div on
Ok, i can use jeditable to edit-in-place some content on a page and the
We're building some Java objects that are exposed via BlazeDS to our flex client
<?xml version=1.0 encoding=utf-8?> <s:Application xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx width=1501 height=960 minWidth=955 minHeight=600> <fx:Declarations> <!-- Place
I'm new to Flex, and I've been trying to figure out how to use
I am building a Android app in Flash Builder 4.5 using Flex 4.5.1 and
I'm having difficulty with a Flex app I'm creating. I believe the problem is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.