User Guide
520 Chapter 12: Methods
scrollByPage()
Usage
-- Lingo syntax
memberObjRef.scrollByPage(amount)
// JavaScript syntax
memberObjRef.scrollByPage(amount);
Description
Command; scrolls the specified field or text cast member up or down by a specified number of
pages. A page is equal to the number of lines of text visible on the screen.
Parameters
amount
Required. Specifies the number of pages to scroll. When amount is positive, the field
scrolls down. When
amount is negative, the field scrolls up.
Example
This statement scrolls the field cast member Today’s News down one page:
--Lingo syntax
member("Today's News").scrollbypage(1)
// JavaScript syntax
member("Today's News").scrollbypage(1);
This statement scrolls the field cast member Today’s News up one page:
--Lingo syntax
member("Today's News").scrollbypage(-1)
// JavaScript syntax
member("Today's News").scrollbypage(-1);
See also
scrollTop
seek()
Usage
-- Lingo syntax
memberOrSpriteObjRef.seek(milliseconds)
// JavaScript syntax
memberOrSpriteObjRef.seek(milliseconds);
Description
RealMedia sprite or cast member method; changes the media stream’s playback location to the
location specified by the number of milliseconds
from the beginning of the stream. The
mediaStatus value usually becomes #seeking and then #buffering.
You can use this method to initiate play at points other than the beginning of the RealMedia
stream, or to jump forward or backward in the stream. The integer specified in
milliseconds is
the number of milliseconds from the beginning of the stream; thus, to jump backward, you
would specify a lower number of milliseconds, not a negative number.