TextField.onSetFocus
Availability
Flash Player 6.
Usage
my_txt.onSetFocus = function(oldFocus){
// your statements here
}
Parameters
The object to lose focus.
oldFocus
Returns
Nothing.
Description
Event handler; invoked when a text field receives keyboard focus. The
object that loses the focus. For example, if the user presses the Tab key to move the input focus
from a button to a text field,
If there is no previously focused object,
TextField._parent
Availability
Flash Player 6.
Usage
my_txt._parent.property
_parent.property
Description
Property; a reference to the movie clip or object that contains the current text field or object. The
current object is the one containing the ActionScript code that references
Use
to specify a relative path to movie clips or objects that are above the current text
_parent
field. You can use
_parent._parent._alpha = 20;
See also
Button._parent
696
Chapter 12: ActionScript Dictionary
oldFocus
to climb up multiple levels in the display list as in the following:
_parent
,
MovieClip._parent
contains the text field instance.
contains a
oldFocus
null
,
,
_root
targetPath
parameter is the
oldFocus
value.
.
_parent
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?