_focusrect property
_focusrect = Boolean;
Specifies whether a yellow rectangle appears around the button or movie clip that has
keyboard focus. If
_focusrect
appears around the currently focused button or movie clip as the user presses the Tab key to
navigate through objects in a SWF file. Specify
rectangle. This is a global property that can be overridden for specific instances.
If the global
_focusrect
and movieclips is that keyboard navigation is limited to the Tab key. All other keys, including
the Enter and arrow keys, are ignored. To restore full keyboard navigation, you must set
to
. To restore full keyboard functionality for a specific button or movieclip,
_focusrect
true
you can override this global property using either
MovieClip._focusrect
If you use a component, then FocusManager overrides Flash Player's focus handling,
including use of this global property.
Availability: ActionScript 1.0; Flash Player 4
Example
The following example demonstrates how to hide the yellow rectangle around any instances in
a SWF file when they have focus in a browser window. Create some buttons or movie clips
and add the following ActionScript in frame 1 of the Timeline:
_focusrect = false;
Change the publish settings to Flash Player 6, and test the SWF file in a browser window by
selecting File > Publish Preview > HTML. Give the SWF focus by clicking it in the browser
window, and use the Tab key to focus each instance. Pressing Enter or the Space key when
is disabled does not invoke the
_focusrect
is enabled or
_focusrect
See also
_focusrect (Button._focusrect property)
property)
is set to its default value of
property is set to
false
.
onRelease
.
true
, then a yellow rectangle
true
if you do not want to show the yellow
false
, then the default behavior for all buttons
Button._focusrect
event handler as it does when
,
_focusrect (MovieClip._focusrect
or
Global Properties
117
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?