ActionScript 2.0 Components Language Reference |
|
|
|
| FocusManager class > FocusManager.getFocus() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004 and Flash MX Professional 2004.
focusManager.getFocus()
None.
A reference to the object that has focus.
Method; returns a reference to the object that currently has focus.
The following code sets the focus to myOKButton if the object that currently has focus is myInputText:
if (focusManager.getFocus() == myInputText)
{
focusManager.setFocus(myOKButton);
}
|
|
|
|