
TextField.onScroller() Event Handler and Listener Event
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
854
|
ActionScript Language Reference
Notice that from the body of the callback we refer to theField_txt using the this keyword.
To stop a callback from handling the onKillFocus() event, use the delete operator, as in:
// Make sure to omit the () operator after the function name!
delete theField_txt.onKillFocus;
The onKillFocus() event can be used to trigger the validation of text field input when the
user has finished entering text. Or, in combination with onSetFocus(), it can bring atten-
tion to a focused text field with color (see the Example under TextField.onSetFocus()). To
capture all focus events centrally, rather than for a single instance, use Selection.
onSetFocus().
See Also
Selection.onSetFocus(), Selection.setFocus(), TextField.onSetFocus(), TextField.selectable,
TextField.tabEnabled, TextField.tabIndex, TextField.type; Chapter 10
TextField.onScroller() Event Handler and Listener Event
invoked when any scroll property changes
Flash 6
theField.onScroller(scrolledField)
listener.onScroller(scrolledField)
Arguments
scrolledField The TextField object that changed scroll position.
Description
The onScroller() event is triggered whenever any of the following text field properties
changes:
scroll, maxscroll, hscroll,ormaxhscroll.