I’m getting an strange intermittent error when attempting to use ResourceBundle/ResourceManager in my Reflex app for localization.  ResourceBundle is, of course, a flex component and so it appears some flex bundles are sneaking in to the party through the binding interface…

Could not find compiled resource bundle 'core' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:340]
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:269]
at mx.resources::ResourceManagerImpl/supportNonFrameworkApps()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:948]
at mx.resources::ResourceManagerImpl/findBundle()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:916]
at mx.resources::ResourceManagerImpl/getClass()[E:\dev\4.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:901]
at Function/http://adobe.com/AS3/2006/builtin::apply()

… snip …

I tried including the flex framework bundle path and adding -include-resource-bundles MobileFlashCards, core, effects, skins, styles to my compiler path to no avail.

So plan B.  Fake out the compiler.  The flex framework uses four base ResourceBundles (as far as I can tell.)  So, I created four empty property files in my locales/en_US folder.

I then included the [ResourceBundle()] meta tag for each of the four core bundles in my <rx:Application file:

[ResourceBundle("core")]
[ResourceBundle("effects")]
[ResourceBundle("styles")]
[ResourceBundle("skins")]

Now I use my [ResourceBundle("MobileFlashCards")] as expected in my skins: No errors.

If anyone has a better solution, I’m all ears!