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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example creates a text field that sets the
formatted text appears 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>";
See also

htmlText (TextField.htmlText property)

htmlText (TextField.htmlText property)
public htmlText :
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 Lite 2.0
Example
The following example creates a text field that sets the
formatted text appears 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>";
See also
html (TextField.html property)

length (TextField.length property)

public length :
Number
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 Lite 2.0
String
html
[read-only]
property to
html
property to
.
true
property to
html
) counts as one character.
\t
. HTML-
true
. HTML-
true
TextField
663

Advertisement

Table of Contents
loading

Table of Contents