scroll

Availability

Flash Lite 1.1.

Usage

textFieldVariableName:scroll

Description

Property; controls the display of information in a text field associated with a variable. The scroll property defines where the text field begins displaying content; after you set it, Flash Lite updates it as the user scrolls through the text field. You can use the scroll property to create a scrolling text field or to direct a user to a specific paragraph in a long passage.

Example

The following code scrolls the myText text field up one line each time the user clicks the 2 key:

on(keyPress "2") {
    if (myText:scroll > 1) {
        myText:scroll--;
    }
}

See also

maxscroll