Using fonts
401
4.
Select the text field, and open the Property inspector.
a.
Set the text field to single-line.
b.
Select the name of the embedded font by using the Font drop-down menu.
Embedded fonts have an asterisk (*) after the font name.
5.
Click Embed in the Property inspector to launch the Character Embedding dialog box.
The Character Embedding dialog box lets you select the individual characters or character
sets that you want to embed for the selected text field. To specify what characters to
embed, either type the characters into the text box in the dialog box, or click Auto Fill to
automatically populate the text field with the unique characters currently in the text field.
If you aren’t sure which characters you will need (for example, because your text loads
from an external file or a web service), you can select entire sets of characters to embed,
such as Uppercase [A..Z], Lowercase [a..z], Numerals [0..9], Punctuation [!@#%...], and
character sets for several different languages.
6.
Select the individual characters or character sets you want to embed, and then click OK to
apply the changes and return to your document.
7.
Select Control > Test Movie to test the Flash document in the authoring environment.
The embedded font is displayed in the text field on the Stage. To properly test that the
font is embedded, you might need to test on a separate computer without the embedded
font installed.
Or you can set the
TextField._alpha
or
TextField._rotation
properties for the text
field with embedded fonts, because these properties work only on embedded fonts (see the
following steps).
8.
Close the SWF file and return to the authoring tool.
9.
Select the text field on the Stage, and open the Property inspector.
a.
Set the text field’s Text type to Dynamic Text.
b.
Type
font_txt
into the Instance Name text box.
10.
Add the following code to Frame 1 of the Timeline:
font_txt._rotation = 45;
11.
Select Control > Test Movie again to view the changes in the authoring environment.
NO
TE
Each character set you select increases the final size of the SWF file because Flash
has to store all of the font information for each character set that you use.
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...