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
style, as in this example:
themeColor
_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
indicators.
FocusManager class (API)
Inheritance
MovieClip >
ActionScript Class Name
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).
In a class file that inherits from UIComponent, it is not good practice to refer to
_root.focusManager
which returns a reference to the FocusManager instance responsible for controlling that
component's focus scheme.
UIComponent.drawFocus
UIObject class
>
UIComponent class
mx.managers.FocusManager
. Every UIComponent instance inherits a
to draw custom focus
> FocusManager
method,
getFocusManager()
FocusManager class (API)
725
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?