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

Actionscript 2.0 language reference
Table of Contents

Advertisement

my_txt.html = true;
my_txt.htmlText = "<b> this is bold text </b>";
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
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
property. You can indicate that a text field is an HTML text field in the Property
text
inspector, or by setting the text field's
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates a text field that sets the
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()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
html (TextField.html property)

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
, but is faster. A character such as tab (
text.length
Availability: ActionScript 1.0; Flash Player 6
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
property to
html
true
html
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
,
asfunction protocol
) counts as one character.
\t
method.
.
property to
. HTML-
true
method.
TextField
1187

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF