|
.scrollTo() Applies To TextField Availability Flash 6 and above, using AS1 or AS2. Usage <TextField>.scrollTo(line [, seconds, animation type, delay, callback, extra1, extra2]); Parameters line : Desired line that the textfield must scroll to. Returns Nothing. Description Shortcut method; scrolls the TextField to an specific line. The line should be between 1 and the value from the TextField's .maxscroll property, inclusive. When using this method, remember that the .scroll property - the one that is used by Flash to control the TextField's current line - should always be an integer. Because of this, scrolling doesn't work on a per-pixel basis but on a per-line basis, so animations done on this property may look odd depending on the TextField's number of lines, size, and font size. Examples // Scroll a textfield to line 100 in 0.5 seconds using a linear transition <TextField>.scrollTo(100, 0.5, "linear"); |