Button._focusrect
Availability
Flash Player 6.
Usage
my_btn._focusrect:Boolean
Description
Property; a Boolean value that specifies whether a button has a yellow rectangle around it when it
has keyboard focus. This property can override the global
property of a button instance is null; meaning, the button instance does not override
_focusrect
the global
_focusrect
, it overrides the setting of the global
false
In Flash Player 4 or Flash Player 5 SWF files, the
property. It is a Boolean value. This behavior was changed in Flash Player 6 and later
_focusrect
to permit customizing the
Example
This example demonstrates how to hide the yellow rectangle around a specified button instance
in a SWF file when it has focus in a browser window. Create three buttons called
, and
myBtn2_btn
myBtn2_btn._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. You will not be able to execute code for this
button by pressing Enter or the Space key when
property. If the
_focusrect
property on an individual movie clip.
_focusrect
, and add the following ActionScript to Frame 1 of the Timeline:
myBtn3_btn
_focusrect
property of a button instance is set to
property for the single button instance.
_focusrect
property controls the global
_focusrect
is disabled.
_focusrect
property. By default, the
true
myBtn1_btn
Button._focusrect
or
,
137
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?