EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 696

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
696 Chapter 12: ActionScript Dictionary
TextField.onSetFocus
Availability
Flash Player 6.
Usage
my_txt.onSetFocus = function(oldFocus){
// your statements here
}
Parameters
oldFocus
The object to lose focus.
Returns
Nothing.
Description
Event handler; invoked when a text field receives keyboard focus. The oldFocus parameter is 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,
oldFocus contains the text field instance.
If there is no previously focused object,
oldFocus contains a null value.
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
_parent.
Use
_parent to specify a relative path to movie clips or objects that are above the current text
field. You can use _parent to climb up multiple levels in the display list as in the following:
_parent._parent._alpha = 20;
See also
Button._parent
, MovieClip._parent, _root, targetPath

Table of Contents

Related product manuals