TextField.onScroller 695
TextField.onKillFocus
Availability
Flash Player 6.
Usage
my_txt.onKillFocus = function(newFocus){
// your statements here
}
Parameters
newFocus
The object that is receiving the focus.
Returns
Nothing.
Description
Event handler; invoked when a text field loses keyboard focus. The onKillFocus method receives
one parameter,
newFocus, which is an object representing the new object receiving the focus. If
no object receives the focus,
newFocus contains the value null.
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, TextFi eld. scr o ll