Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > maxscroll | |||
Flash Lite 1.1
variable_name:maxscroll
Property (read-only); indicates the line number of the first visible line of text in a scrollable text field when the last line in the field is also visible. The maxscroll property works with the scroll property to control how information appears in a text field. This property can be retrieved but not modified.
The following code, which scrolls the myText text field down one line when the user presses the 8 key, tests against maxscroll before scrolling:
on(keyPress "8") {
if (myText:scroll < myText:maxscroll) {
myText:scroll++;
}
}
|
|
|
|