User Guide

FocusManager class (API) 725
6. Select Control > Test Movie.
7. Select Control > Disable Keyboard Shortcuts.
The code sets the tab ordering. Although the comment field doesn’t have an initial focus
ring, it has initial focus, so you can start typing in the comment field without clicking in
it. Also, you have to select the Disable Keyboard Shortcuts menu option for focus to work
properly in test mode.
Customizing Focus Manager
You can change the color of the focus ring in the Halo theme by changing the value of the
themeColor style, as in this example:
_global.style.setStyle("themeColor", "haloBlue");
The Focus Manager uses a FocusRect skin for drawing focus. This skin can be replaced or
modified and subclasses can override
UIComponent.drawFocus to draw custom focus
indicators.
FocusManager class (API)
Inheritance MovieClip > UIObject class > UIComponent class > FocusManager
ActionScript Class Name mx.managers.FocusManager
You can use the Focus Manager to specify the order in which components receive focus when
a user presses the Tab key to navigate in an application. You can also use the FocusManager
class to set a button in your document that receives keyboard input when a user presses Enter
(Windows) or Return (Macintosh).
TIP
In a class file that inherits from UIComponent, it is not good practice to refer to
_root.focusManager. Every UIComponent instance inherits a getFocusManager() method,
which returns a reference to the FocusManager instance responsible for controlling that
component’s focus scheme.