TextField.maxscroll Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By 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



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net