EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Htmltext (Textfield.htmltext Property); Length (Textfield.length Property)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TextField 1187
my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";
The MovieClip.getNextHighestDepth() method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
See also
htmlText (TextField.htmlText property)
htmlText (TextField.htmlText property)
public htmlText : String
If the text field is an HTML text field, this property contains the HTML representation of the
text field's contents. If the text field is not an HTML text field, it behaves identically to the
text property. You can indicate that a text field is an HTML text field in the Property
inspector, or by setting the text field's
html property to true.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates a text field that sets the
html property to true. HTML-
formatted text displays in the text field.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160,
22);
my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";
The MovieClip.getNextHighestDepth() method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
See also
html (TextField.html property), asfunction protocol
length (TextField.length property)
public length : Number [read-only]
Indicates the number of characters in a text field. This property returns the same value as
text.length, but is faster. A character such as tab (\t) counts as one character.
Availability: ActionScript 1.0; Flash Player 6

Table of Contents

Related product manuals