Name

maxscroll Property — the last legal top line of a text field

Availability

Flash 4 and later

Synopsis

textField.maxscroll

Returns

A positive integer representing the line number of the last legal top line of a text field.

Description

The maxscroll property tells us the largest allowed scroll value for a text field. It represents the number of the last line in a text field that may be used as the top line in its viewable region.

The maxscroll property can be used with the scroll property to manage a scrolling-text field.

See Also

scroll; Section 18.4.2 in Chapter 18

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.