User Guide
FocusManager.getFocus() 731
Description
Property; a Boolean value that determines if tab handling is turned on (true) or not (false)
for a particular group of focus objects. (For example, another pop-up window could have its
own Focus Manager.) Setting
enabled to false allows a component to receive the tab
handling keys and handle them internally. You must re-enable the Focus Manager handling by
watching the component’s
onKillFocus() method (see onKillFocus
(MovieClip.onKillFocus handler)
in ActionScript 2.0 Language Reference) or focusOut
event. The default value is
true.
Example
The following code disables tabbing:
focusManager.enabled = false;
FocusManager.getFocus()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004.
Usage
focusManager.getFocus()
Parameters
None.
Returns
A reference to the object that has focus.
Description
Method; returns a reference to the object that currently has focus.
Example
The following code sets the focus to myOKButton if the object that currently has focus is
myInputText:
if (focusManager.getFocus() == myInputText)
{
focusManager.setFocus(myOKButton);
}