Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.3 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows XP
Browser: Internet Explorer 6.x
Language Found: English
Description
In order to develop multi-lunguage application, I developed 1 'parent' application and 2 'child' applications.
Each of the 'children' application contains the "@Resource" directive to support 1 lunguage.
Then, I made the 'parent' application and tried to loads the these children, but it did not switch as I expected.
[Steps to reproduce]
(NOTE: I assume that your Flex SDK environment enables to use es_ES by the 'copylocale.exe')
1. Extract the attached "Repro_Source.zip" file.
You should get below 6 files, so please save them into same local folder of your client machine.
compile.bat
src\LocaleTestNG.mxml
src\LocaleTestOK.mxml
src\ChildApp.mxml
\src\locale\en_US\resource.properties
\src\locale\es_ES\resource.properties
2. Open the [Command Prompt] window and execute the "compile.bat" which was extracted at step #1.
3. Launch the LocaleTestNG.swf file.
4. Select "ES" in the combo box.
---> The "ChildApp_ES.swf" is loaded and the "Spanish Application" text appeared.
5. Select "EN" in the combo box.
---> The "ChildApp_EN.swf" is loaded and the "English Application" text appeared.
6. Select "ES" in the combo box.
- Actual Result.
After the steps #6, The sample program still shows the text "English Application".
The "ChildApp_ES.swf" is NOT appeared.
Once you met the symptom, you can't show the "ChildApp_ES.swf" again even if you select the combo box for many times.
- Expected Result.
After the steps #6, the "ChildApp_ES.swf" is appeared.
- Workaround (if any):
There are 2 workarounds:
1) Develop 1 .mxml application as below document, instaed of using SWFLoader object to load 'child' .swf files
http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_4.html
2) Set the "resourceManager.localeChain" property after the SWFLoader object loads the 'child' .swf files.
Please refer the attached sample program, "LocaleTestOK.mxml".