User Guide

860 ActionScript classes
focusEnabled (MovieClip.focusEnabled property)
public focusEnabled : Boolean
If the value is undefined or false, a movie clip cannot receive input focus unless it is a
button. If the
focusEnabled property value is true, a movie clip can receive input focus even
if it is not a button.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example sets the
focusEnabled property for the movie clip my_mc to false:
my_mc.focusEnabled = false;
_focusrect (MovieClip._focusrect property)
public _focusrect : Boolean
A Boolean value that specifies whether a movie clip has a yellow rectangle around it when it
has keyboard focus. This property can override the global
_focusrect property. The default
value of the
_focusrect property of a movie clip instance is null; this means that the movie
clip instance does not override the global
_focusrect property. If the _focusrect property
of a movie clip instance is set to
true or false, it overrides the setting of the global
_focusrect property for the single movie clip instance.
In Flash Player 4 or Flash Player 5 SWF files, the
_focusrect property controls the global
_focusrect property. It is a Boolean value. This behavior was changed in Flash Player 6 and
later to permit the customization of
_focusrect on an individual movie-clip basis.
If the
_focusrect property is set to false, keyboard navigation for that movie clip 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
_focusrect to true.
Availability: ActionScript 1.0; Flash Player 6
Example
This example demonstrates how to hide the yellow rectangle around a specified movie clip
instance in a SWF file when it has focus in a browser window. Create three movie clips called
mc1_mc, mc2_mc, and mc3_mc, and add the following ActionScript on Frame 1 of the
Timeline:
mc1_mc._focusrect = true;
mc2_mc._focusrect = false;
mc3_mc._focusrect = true;
mc1_mc.onRelease = traceOnRelease;