Lingo Dictionary > S > scrollByPage |  |

scrollByPage

Syntax

    member(whichCastMember). scrollByPage(amount)
    scrollByPage member whichCastMember, amount

Description

Command; scrolls the specified field or text cast member up or down by the number of pages specified in `amount`. A page is equal to the number of lines of text visible on the screen.

| When`amount` is positive, the field scrolls down.
| When `amount` is negative, the field scrolls up.

The Director player for Java doesn't support the `scrollByPage` member`` property. Use the `scrollTop` member property to write Lingo that scrolls text.

Example

This statement scrolls the field cast member Today's News down one page:

    member("Today's News").scrollbypage(1)

Example

This statement scrolls the field cast member Today's News up one page:

    member("Today's News").scrollbypage(-1)

See also

`scrollTop`