Focusenabled (Movieclip.focusenabled Property); Focusrect (Movieclip._Focusrect Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

focusEnabled (MovieClip.focusEnabled property)

public focusEnabled : Boolean
If the value is
undefined
button. If the
focusEnabled
if it is not a button.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example sets the
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
value of the
_focusrect
clip instance does not override the global
of a movie clip instance is set to
property for the single movie clip instance.
_focusrect
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
_focusrect
later to permit the customization of
If the
property is set to
_focusrect
to the Tab key. All other keys, including the Enter and arrow keys, are ignored. To restore full
keyboard navigation, you must set
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
,
, and
mc1_mc
mc2_mc
Timeline:
mc1_mc._focusrect = true;
mc2_mc._focusrect = false;
mc3_mc._focusrect = true;
mc1_mc.onRelease = traceOnRelease;
860
ActionScript classes
or
, a movie clip cannot receive input focus unless it is a
false
property value is
focusEnabled
property of a movie clip instance is
_focusrect
or
true
false
_focusrect
, keyboard navigation for that movie clip is limited
false
_focusrect
, and add the following ActionScript on Frame 1 of the
mc3_mc
, a movie clip can receive input focus even
true
property for the movie clip
_focusrect
; this means that the movie
null
property. If the
, it overrides the setting of the global
property controls the global
_focusrect
on an individual movie-clip basis.
to
.
true
to
:
my_mc
false
property. The default
property
_focusrect

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF