180
Working with Text
4.
Set the text field variable to a value that includes HTML tags.
For example, the following code assigns a value to a text field with the variable name
txt
.
The text is rendered in bold if you select the Render Text as HTML option in the
Property inspector, or if the
html
property is set to
true
:
txt = "<b>Chris</b>";
In the following example, the variable name of the text field is also
txt
. Because the value
of the
html
property of the TextField object is set to
true
, you can use the variable name
to render the text field in bold without selecting the Render Text as HTML option in the
Property inspector:
myInstanceName
.html = true;
txt = "<b>Chris</b>";
Substituting missing fonts
If you work with a document containing fonts that aren’t installed on your system (for
example, a document you received from another designer), Flash substitutes the missing fonts
with fonts available on your system. You can select which fonts on your system are substituted
for the missing fonts, or you can let Flash substitute missing fonts with the Flash System
Default Font (specified in General Preferences).
If you install a previously missing font on your system and restart Flash, the font is displayed
in any documents using the font, and the font is removed from the Missing Fonts dialog box.
Selecting substitute fonts
An alert box indicating missing fonts in a document appears the first time a scene containing
a missing font is displayed on the Stage. If you publish or export the document without
displaying any scenes that contain the missing fonts, the alert box appears during the publish
or export operation. If you choose to select substitute fonts, the Font Mapping dialog box
appears, listing all missing fonts in the document and letting you select a substitute for each.
NO
TE
Substituting missing fonts while editing a Flash document does not change the fonts
that are specified in the Flash document.
NO
T
E
If the document contains many missing fonts, a delay may occur while Flash generates
the list of missing fonts.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...