Set the text field variable to a value that includes HTML tags.
4.
For example, the following code assigns a value to a text field with the variable name
text is rendered in bold if you select the Render Text as HTML option in the Property
inspector, or if the
txt = "<b>Chris</b>";
In the following example, the variable name of the text field is also
the
property of the TextField object is set to
html
render the text field in bold without selecting the Render Text as HTML option in the
Property inspector:
instName.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).
Note: Substituting missing fonts while editing a Flash document does not change the fonts that are
specified in the Flash document.
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 containing 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.
Note: If the document contains many missing fonts, a delay may occur while Flash generates the list
of missing fonts.
You can apply the missing font to new or existing text in the current document. The text is
displayed on your system using the substitute font, but the missing font information is saved with
the document. If the document is reopened on a system that includes the missing font, the text is
displayed in that font.
Text attributes such as font size, leading, kerning, and so on may need to be adjusted when the
text is displayed in the missing font, because the formatting you apply is based on the appearance
of the text in the substitute font.
122
Chapter 6: Working with Text
property is set to
html
:
true
, you can use the variable name to
true
. The
txt
. Because the value of
txt
Need help?
Do you have a question about the FLASH MX 2004-USING FLASH and is the answer not in the manual?