464
ActionScript classes
See also
beginFill (MovieClip.beginFill method)
,
beginGradientFill
(MovieClip.beginGradientFill method)
,
moveTo (MovieClip.moveTo method)
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 Lite 2.0
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 input focus. This property can override the global
_focusrect
property. The default
value of the
_focusrect
property of a movie clip instance is
null
; 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.
Note
: For Flash Lite 2.0, when the
_focusrect
property is disabled (in other words,
MovieClip._focusrect
is set to
false
), the movie clip still receives all key press and mouse
events.
Also for Flash Lite 2.0, you can change the color of the focus rectangle using the fscommand2
SetFocusRectColor
command. This behavior is different from Flash Player, for which the
color of the focus rectangle is restricted to yellow.
Availability:
ActionScript 1.0; Flash Lite 2.0
Содержание Flash Lite 2
Страница 1: ...Flash Lite 2 x ActionScript Language Reference...
Страница 22: ...22 Contents...
Страница 244: ...244 ActionScript language elements...
Страница 760: ...760 ActionScript classes...