1 person found this helpful
You may have to make all resources into modules. I'm not sure you can bake
a default set in for a locale.
Thanks for getting back to me. Do you know if there's a repository of CS5 (Flex 4, Flash 5, etc) examples somewhere?
Don't know about CS5, but for Flex 4, see www.flexexamples.com
Thanks for the URL harUI.
For future people viewing this thread...
"When the module has been loaded, the resource bundles are added to the ResourceManager, but the localeChain is left unchanged. If the update parameter is true, the update() method will be called."
Do not interpret this to be the same as addResourceBundle(). addResourceBundle() will update the existing resource bundle if you use the same locale and bundle name. loadResourceModule() will bounce, losing the whole new resource bundle (the old one stays intact).
I've run through a number of scenarios and each time I can only change resources by:
1. Load your resource modules before loading your main UI module (if you have MXML dependencies on resources brought in via fx:MetaData, then there's no way to remove them without things blowing up)
2. Once you're running you can unloadResourceModule() on the resources you want to change (without update)
3. Then loadResourceModule() on your new resources (with update) Note that this is not an append or update, but rather a change. Any resources that were in the original resourceModule and aren't in the new one are lost.
If anyone has found another way to do this please correct me.