
MovieClip._focusrect Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
654
|
ActionScript Language Reference
See Also
MovieClip._focusrect, MovieClip.tabEnabled, MovieClip.tabIndex, TextField.selectable,
Selection.setFocus()
MovieClip._focusrect Property
disable automatic yellow rectangle around focused movie clips
Flash 6
read/write
mc._focusrect
Description
When a movie clip has keyboard focus, Flash displays a yellow rectangle around it, which
is not always aesthetically desirable. You can turn off the yellow rectangle for an individual
movie clip by setting its
_focusrect property to false:
listbox_mc._focusrect = false;
When _focusrect is true and mc has keyboard focus, Flash displays the yellow rectangle
and the contents of
mc’s _over frame (if a frame labeled _over exists). When _focusrect is
set to
false, Flash displays just the _over frame. When _focusrect is null (the default), the
value of the global
_focusrect property is used. To disable the yellow focus rectangle for all
movie clip and buttons in a movie, set the global
_focusrect property to false. Note that
the value of the global
_focusrect property is not reflected by the _focusrect property of
individual movie clip instances. However, setting an individual movie clip’s
_focusrect
property overrides the global setting.
Usage
The Tab key does not work reliably in Test Movie ...