Table of Contents

MovieClip._focusrect Property Flash 6

disable automatic yellow rectangle around focused movie clips 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 mode unless Control figs/U2192.gif Disable Keyboard Shortcuts is enabled. Be sure to test keyboard behavior in the Standalone Player, if applicable, and in the Flash Player for all targeted web browsers.

See Also

Button._focusrect, _focusrect


Table of Contents