Html (Textfield.html 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

Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example scrolls the
and
scrollLeft_btn
. Add the following ActionScript to your FLA or ActionScript 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;
};
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 Lite 2.0
662
ActionScript classes
text field horizontally using two buttons called
my_txt
. The amount of scroll appears in a text field called
scrollRight_btn
,
scroll (TextField.scroll
is
, the text field is a non-
html
false
html

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Table of Contents