FocusManager.setFocus()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004.
Usage
focusManager.setFocus(object)
Parameters
A reference to the object to receive focus.
object
Returns
Nothing.
Description
Method; sets focus to the specified object. If the object to which you want to set focus is not on
the main Timeline, use the following code:
_root.focusManager.setFocus(object);
Example
The following code sets focus to
focusManager.setFocus(myOKButton);
See also
FocusManager.getFocus()
:
myOKButton
FocusManager class
429
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers