400
Working with Text and Strings
You will see the string “helo wrd”. Instead of having to tell Flash which characters you
want to include, Flash can determine all unique characters in the specified text field
for you.
11.
Click OK.
Embedding fonts
When you embed fonts, Flash stores all of the font information in the SWF file so the font is
displayed properly even if it’s not installed on the user’s computer. If you use a font in your
FLA file that isn’t installed on a user’s system, and you don’t embed the font in the SWF file,
Flash Player automatically selects a substitute font to use instead.
To embed a font symbol:
1.
Select Window > Library to open the current FLA file’s library.
Open the library that you want to add the font symbol to.
2.
Select New Font from the library’s pop-up menu (upper-right corner of the Library panel).
3.
Type a name for the font symbol in the Name text box of the Font Symbol Properties
dialog box.
4.
Select a font from the Font menu or type the name of a font in the Font text box.
5.
Select Bold, Italic, or Alias text if you want to apply a style to the font.
6.
Enter the font size to embed, and then click OK to apply the changes and return to
your document.
Your font now appears in the current document’s library.
After you’ve embedded a font in your library, you can use it with a text field on the Stage.
To use an embedded font symbol in your Flash document:
1.
Follow the steps in the procedure under
“Embedding fonts” on page 400
to embed a font
in your library.
2.
Use the Text tool to create a text field on the Stage.
3.
Type some text in the text field.
TI
P
Flash can determine characters to embed automatically only if the text field contains
text on the Stage. If the text field is populated by using ActionScript, you must
specify which characters you want to embed for the text field.
NO
TE
You need to embed a font only if you’re using dynamic or input text fields. If you use a
static text field, you don’t need to embed the font.
Содержание FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Страница 1: ...Learning ActionScript 2 0 in Flash...
Страница 8: ...8 Contents...
Страница 18: ...18 Introduction...
Страница 30: ...30 What s New in Flash 8 ActionScript...
Страница 66: ...66 Writing and Editing ActionScript 2 0...
Страница 328: ...328 Interfaces...
Страница 350: ...350 Handling Events...
Страница 590: ...590 Creating Interaction with ActionScript...
Страница 710: ...710 Understanding Security...
Страница 730: ...730 Debugging Applications...
Страница 780: ...780 Deprecated Flash 4 operators...
Страница 830: ...830 Index...