In the tricky job of creating multilanguage content, Flash provides us with the Strings panel that makes our lifes easier.
This panel is accessed from Windows > Other Panels > Strings and in order to add languages to our movie we need to click the Settings button.
Once we have added the languages, we need to specify which language we want as a default and the method that is going to be used to replace the strings.
We can choose between three different methods:
- Automatically at runtime: Flash will detect the language used in the computer and it will be applied as the language of the movie.
- Manually using stage language: We have an option in the same Strings panel where we can select the language. The movie will use that language in the output file.
- Via ActionScript at runtime: With ActionScript we can pick the language at runtime and change it when needed. This option is very handly if we need to allow the user to change the language of the movie.
Now we are ready to start feeding the Strings panel with text entries!
First we have to fill the identifier and the string and press the button Apply. Take special attention at the stage language selected as the string will be added to that language. You can add or modify all the strings easily later in the grid below.
In order to attach a string to a textfield in our movie we need to select the textfield on the stage and select the string in the Strings panel. Pressing the button Apply will do the job.
Now we can do a quick test selecting in the Settings Manually using stage language and if we go ahead and change the stage language we will see that the textfields are updated!
When we save the movie, Flash will save XML files for the different languages. Every language will be stored inside a different folder with the identifier of the language as the name. These XML files can be imported to the Strings panel pressing the button Import XML.
For more information you can have a look here at the Adobe official documentation.