Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 300

Advertising
background image

Directly in the Strings panel cells.

On the Stage in the language selected as the Stage language, using features such as find and replace and spelling checking. Text that you
change using these features is changed on the Stage and in the Strings panel.

Edit the XML file directly.

Change the language displayed on the Stage

1. Select Window > Other Panels > Strings.

2. In the Stage Language menu, select the language to use for the Stage language. This must be a language you added as an available

language.

After you change the Stage language, any new text you type on the Stage appears in that language. If you previously entered text strings for
the language in the Strings panel, any text on the Stage appears in the selected language. If not, the text fields already on the Stage are
blank.

Enter Asian characters on a Western keyboard

With Flash Professional, you can use Input Method Editors (IMEs) and standard Western keyboards to enter Asian characters on the Stage. Flash
Professional supports more than two dozen IMEs.

For example, to create a website that reaches a broad range of Asian viewers, you can use a standard Western (QWERTY) keyboard and change
the IME to create text in Chinese, Japanese, and Korean.

Note: This feature affects only text input on the Stage, not text entered in the Actions panel. This feature is available for all supported Windows
operating systems and Mac OS X.

1. Select Edit > Preferences (Windows) or Flash > Preferences (Macintosh), and click Text in the Category list.

2. Under Input Method, select one of the options to input characters from a Western keyboard. The default is Chinese and Japanese and it

should also be selected for Western languages.

Publishing multilanguage FLA files

When you save, publish, or test the FLA file, a folder with an XML file is created for each available language you selected in the Strings panel. The
default location for the XML folders and files is the same folder indicated as the SWF publish path. If no SWF publish path was selected, the XML
folder and files are saved in the folder in which the FLA file is located. For example, if you have a file named Test in the mystuff folder, and you
selected English (en), German (de), and Spanish (es) as active languages, and you did not select a SWF publish path, when you save the FLA
file, the following folder structure is created:

\mystuff\Test.fla

\mystuff\de\Test_de.xml

\mystuff\en\Test_en.xml

\mystuff\es\Test_es.xml

When you start a SWF file, you also need to start the associated XML files with the string translations in the web server. The first frame that
contains text cannot appear until the entire XML file is downloaded.

Manually replace strings at publish time

Manually replace strings by using the Stage language when you publish your Flash Professional SWF file. This method uses the Stage language
to replace all instances of input and dynamic text with an associated string ID. In this case, text strings are only updated when you publish the
SWF file; language detection is not automatic, and you must publish a SWF file for each language to support.

1. Select Window > Other Panels > Strings, and click Settings.

2. Select the Replace Strings Automatically At Runtime check box.

Use automatic language detection with the default language

You can change the default runtime language to any language that you selected as an available language. When automatic language detection is
on, and you view the SWF file on the system that uses the language, any system that is set to a language other than one of the active languages
uses the default language. For example, if you set your default language to English and you select ja, en, and fr as active languages, users who
have their system language set to Japanese, English, or French automatically see text strings in their chosen language. However, users who have
their system language set to Swedish, which is not one of the selected languages, automatically see text strings in the default language you
selected—in this case, English.

1. Select Window > Other Panels > Strings, and click Settings.

2. In the Default language menu, select the default language. This must be a language you added as an available language.

3. To enable automatic language detection, select Replace Strings Automatically At Runtime, and click OK.

Flash Professional generates the following ActionScript®, which stores the language XML file paths. Use this code as a starting point for your own
language detection script.

293

Advertising