Bottomscroll (Textfield.bottomscroll Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
border (TextField.border property)

bottomScroll (TextField.bottomScroll property)

public bottomScroll : Number [read-only]
An integer (one-based index) that indicates the bottommost line that is currently visible the
text field. Think of the text field as a window onto a block of text. The property
is the one-based index of the topmost visible line in the window.
TextField.scroll
All the text between lines
visible in the text field.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example creates a text field and fills it with text. You must insert a button (with
the instance name "my_btn"), and when you click it, 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);
};
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
and
TextField.scroll
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
TextField.bottomScroll
and
scroll
bottomScroll
field.
comment_txt
is currently
method.
TextField
1175

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