Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Properties > scroll | |||
Flash Lite 1.1.
textFieldVariableName:scroll
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.
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--;
}
}
|
|
|
|