Unicode support for ActionScript
Flash 8 supports Unicode text encoding for ActionScript. This means that you can include
text in different languages in an ActionScript file. For example, you can include text in
English, Japanese, and French in the same file.
When you use a non-English application on an English system, the Test Movie
command (see
"Debugging your scripts" on page
path has characters that cannot be represented by using the Multibyte Character Sets
(MBCS) encoding scheme. For example, Japanese paths, which work on a Japanese
system, won't work on an English system. All areas of the application that use the
external player are subject to this limitation.
Import and export preferences
You can set ActionScript preferences to specify the type of encoding to use when importing or
exporting ActionScript files. You can select UTF-8 encoding or Default Encoding. UTF-8 is
8-bit Unicode format; Default Encoding is the encoding form supported by the language
your system is currently using, also called the traditional code page.
In general, if you are importing or exporting ActionScript files in UTF-8 format, use the
UTF-8 preference. If you are importing or exporting files in the traditional code page in use
on your system, use the Default Encoding preference.
If text in your scripts doesn't look as expected when you open or import a file, change the
import encoding preference. If you receive a warning message when you export ActionScript
files, you can change the export encoding preference or turn this warning off in ActionScript
preferences.
To select text encoding options for importing or exporting ActionScript files:
1.
In the Preferences dialog box (Edit > Preferences (Windows) or Flash > Preferences
(Macintosh)), click ActionScript in the Category list.
2.
Under Editing Options, do one or both of the following:
For Open/Import, select UTF-8 Encoding to open or import using Unicode
encoding, or select Default Encoding to open or import using the encoding form of
the language currently used by your system.
For Save/Export, select UTF-8 Encoding to save or export using Unicode encoding,
or select Default Encoding to save or export using the encoding form of the language
currently used by your system.
711) fails if any part of the SWF file
About coding in the Actions panel and Script window
57
Need help?
Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?