_focusrect
Availability
Flash Player 4.
Usage
_focusrect = Boolean;
Description
Property (global); specifies whether a yellow rectangle appears around the button or movie clip
that has keyboard focus. If
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.
Note: If you use a component, then FocusManager overrides Flash Player's focus handling, including
use of this global property.
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
Button._focusrect,
300
Chapter 2: ActionScript Language Reference
ActionScript Language Reference
is set to its default value of
_focusrect
onRelease
.
true
MovieClip._focusrect
true
if you do not want to show the yellow
false
event handler as it does when
CHAPTER 2
, then a yellow rectangle
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers