TextField.onScroller

Availability

Flash Player 6.

Usage

my_txt.onScroller = function(textFieldInstance){
  // your statements here
}

Parameters

textFieldInstance A reference to the TextField object whose scroll position was changed.

Returns

Nothing.

Description

Event handler; invoked when one of the text field scroll properties changes.

A reference to the text field instance is passed as a parameter to the onScroller handler. You can capture this data by putting a parameter in the event handler method. For example, the following code uses txt as the parameter that is passed to the onScroller event handler. The parameter is then used in a trace() statement to send the instance name of the text field to the Output panel.

myTextField.onScroller = function (txt) {
  trace (txt._name + " scrolled");
};

See also

TextField.hscroll, TextField.maxhscroll, TextField.maxscroll, TextField.scroll