Html (Textfield.html Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Example
The following example scrolls the
and
scrollLeft_btn
. Add the following ActionScript to your FLA or AS file:
scroll_txt
this.createTextField("scroll_txt", this.getNextHighestDepth(), 10, 10, 160,
20);
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 30, 160,
22);
my_txt.border = true;
my_txt.multiline = false;
my_txt.wordWrap = false;
my_txt.text = "Lorem ipsum dolor sit amet, consectetuer adipiscing...";
scrollLeft_btn.onRelease = function() {
my_txt.hscroll -= 10;
scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;
};
scrollRight_btn.onRelease = function() {
my_txt.hscroll += 10;
scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;
};
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
maxhscroll (TextField.maxhscroll property)
property)

html (TextField.html property)

public html : Boolean
A flag that indicates whether the text field contains an HTML representation. If the
property is
, the text field is an HTML text field. If
true
HTML text field.
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);
1186
ActionScript classes
text field horizontally using two buttons called
my_txt
. The amount of scroll displays in a text field called
scrollRight_btn
MovieClip.getNextHighestDepth()
method used in this example requires Flash Player
,
scroll (TextField.scroll
is
html
false
property to
html
method.
html
, the text field is a non-
. HTML-
true

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