scroll
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
textFieldVariableName.scroll = x

Description
A property that 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, the Flash Player updates it as the user scrolls through the Text Field.

The scroll property is useful for directing users to a specific paragraph in a long passage, or creating scrolling Text Fields. This property can be retrieved and modified.

Sample
The following code is attached to an 'Up' button that scrolls the Text Field txt:

on (release) {
    txt.scroll += 1;  // scroll to the next line 
}


Note:
·This property is not available with simple Text Field Objects  
·Property must be an integer value. Consequently smooth scrolling is not possible  
·If smooth scrolling is required, it is possible to simulate using Sprites and Sprite masks  

See also
maxscroll and Text Field Properties.