beautypg.com

Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 299

background image

Select a language

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

2. Add a language by doing one of the following:

In the Languages box, highlight a language to select, and click Add.

If the language does not appear in the Languages box, in the blank field below the Languages box, type a language code in the format
xx. (The language code is from ISO 639-1.) Click Add.

3. Repeat step the previous step until you have added all the necessary languages.

4. Select a default language from the Default runtime language menu. This language appears on systems that do not have one of the active

languages you selected.

5. To load an XML file for the languages from a different URL at runtime, type the URL in the URL text field and click OK.

A column for each selected language appears in the Strings panel. The columns appear in alphabetical order.

6. Save the FLA file. When you save the FLA file, a folder for each language you selected is created in the same folder indicated in the SWF

publish path. If no SWF publish path has been selected, it is created in the folder the FLA file resides in. Within each language file an XML
file is created that is used to load translated text.

Remove a language

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

2. In the Active languages field, highlight a language and click Remove.

3. Repeat step 3 until you have removed all the unwanted languages.

4. When you finish removing languages, click OK.

The column for each removed language no longer appears in the Strings panel.

Note: When you remove a language from the Strings panel, the language XML file is not deleted from the local file system. This lets you add the
language back into the Strings panel by using the previous XML file, and prevents accidental deletion. To completely remove the language, you
must delete or replace the language XML file.

Add strings to the Strings panel

Assign text strings to the Strings panel in the following ways:

Assign a string ID to a dynamic or input text field

Add a string to the Strings panel without assigning it to a text field

Assign an existing string ID to an existing dynamic or input text field

Assign a string ID to a text field

1. Select Window > Other Panels > Strings.

2. Select the Text tool. On the Stage, create an input or dynamic text field.

3. While the text field is selected, type a unique ID in the ID field in the Strings panel.

4. Click the Settings button and select a language or languages from the list in the Settings dialog box. The languages you select should

include the default language you wish to use and any other languages in which you plan to publish your work.

5. Click Apply.

Note: If a static text field is selected on the Stage, the Stage text selection section on the Strings panel displays the message “Static text cannot
have an ID associated with it.” If a nontext item is selected or multiple items are selected, the message “Current selection cannot have an ID
associated with it” appears.

Add a string ID to the Strings panel without assigning it to a text field

1. Select Window > Other Panels > Strings.

2. Click the Settings button and select a language or languages from the list in the Settings dialog box. The languages you select should

include the default language you wish to use and any other languages in which you plan to publish your work.

3. Type a new string ID and new string in the Strings panel, and click Apply.

Assign an existing ID to a text field

1. Select the Text tool. On the Stage, create an input or dynamic text field.

2. Type the name of an existing ID in the ID section of the Strings panel, and click Apply.

Note: Press Shift+Enter to apply the ID to the text field, or Enter if the focus is on the ID field.

Editing strings in the Strings panel

After you enter text strings in the Strings panel, use one of the following methods to edit the text strings:

292