Textfield.bottomscroll - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

TextField.bottomScroll

Availability
Flash Player 6.
Usage
my_txt.bottomScroll:Number
Description
Read-only property; an integer (one-based index) that indicates the bottommost line that is
currently visible in
property
TextField.scroll
All the text between lines
in the text field.
Example
The following example creates a text field and fills it with text. The
properties for the text field are then traced for the
this.createTextField("comment_txt", this.getNextHighestDepth(), 0, 0, 160,
120);
comment_txt.html = true;
comment_txt.selectable = true;
comment_txt.multiline = true;
comment_txt.wordWrap = true;
comment_txt.htmlText = "<b>What is hexadecimal?</b><br>The hexadecimal color
system uses six digits to represent color values. Each digit has sixteen
possible values or characters. The characters range from 0 to 9 and then A to
F. Black is represented by (#000000) and white, at the opposite end of the
color system, is (#FFFFFF).";
my_btn.onRelease = function() {
trace("scroll: "+comment_txt.scroll);
trace("bottomScroll: "+comment_txt.bottomScroll);
};
882
Chapter 2: ActionScript Language Reference
. Think of the text field as a "window" onto a block of text. The
my_txt
is the one-based index of the topmost visible line in the window.
TextField.scroll
and
TextField.bottomScroll
scroll
field.
comment_txt
is currently visible
and
bottomScroll

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents