Maxscroll (Textfield.maxscroll Property); Multiline (Textfield.multiline 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

maxscroll (TextField.maxscroll property)

public maxscroll :
Indicates the maximum value of
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example sets the maximum value for the scrolling text field
buttons,
scrollUp_btn
ActionScript to your FLA or ActionScript file.
this.createTextField("scroll_txt", this.getNextHighestDepth(), 10, 10, 160,
20);
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 30, 320,
240);
my_txt.multiline = true;
my_txt.wordWrap = true;
for (var i = 0; i<10; i++) {
my_txt.text += "Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh "
+ "euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.";
}
scrollUp_btn.onRelease = function() {
my_txt.scroll--;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};
scrollDown_btn.onRelease = function() {
my_txt.scroll++;
scroll_txt.text = my_txt.scroll+" of "+my_txt.maxscroll;
};

multiline (TextField.multiline property)

public multiline :
Indicates whether the text field is a multiline text field. If the value is
multiline; if the value is
Availability: ActionScript 1.0; Flash Lite 2.0
Number
[read-only]
TextField.scroll
and
scrollDown_btn,
Boolean
, the text field is a single-line text field.
false
.
to scroll the text field. Add the following
. Create two
my_txt
, the text field is
true
TextField
665

Advertisement

Table of Contents
loading

Table of Contents