![]() ![]() | |
Flash Player 6.
my_txt.onScroller =function(textFieldInstance){ // your statements here }
textFieldInstance A reference to the TextField object whose scroll position was changed.
Nothing.
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");
};
TextField.hscroll, TextField.maxhscroll, TextField.maxscroll, TextField.scroll
![]() ![]() | |