ActionScript for Flash MX: The Definitive Guide, Second Edition

ActionScript for Flash MX: The Definitive Guide, 2nd EditionBy Colin Moock
Chapter 18.  ActionScript Language Reference
TextField.maxscroll Property Flash 5

the last legal top line of a text fieldFlash 6; corresponds to the maxscroll property in Flash 4 and read-only

theField.maxscroll

Description

The integer 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 can be used as the top line in its viewable region. Note that maxscroll is not equal to the number of text lines; that value must be obtained manually, as discussed under TextField.bottomScroll.

See Example 18-7 under TextField.scroll for sample scrolling code.

See Also

TextField.bottomScroll, TextField.hscroll, TextField.maxhscroll, TextField.scroll; the FScrollBar component in Appendix G

    Категории