Table of Contents

_focusrect Global Property Flash 4

the highlight state used for buttons and movie clips activated via the keyboard read/write
_focusrect

Description

When the mouse pointer hovers over a button in Flash, the content of the button's Over state is displayed. Buttons can also gain keyboard focus when the user presses the Tab key. When a button has keyboard focus, Flash places a yellow rectangle around that button, which is not always aesthetically desirable. You can turn off the yellow rectangle using the _focusrect global property, like so:

_focusrect = false;

When _focusrect is set to false, Flash displays the Over state of buttons with keyboard focus, or the frame labeled _over in movie clips with keyboard focus. When _focusrect is set to true (its default), Flash displays the yellow rectangle in addition to displaying the Over state (or _over frame).

Note that _focusrect can be set for individual button or movie clip instances via Button._focusrect and MovieClip._focusrect.

See Also

Button._focusrect, MovieClip.focusEnabled, MovieClip._focusrect, MovieClip.tabEnabled, Selection.getFocus( ), Selection.setFocus( )


Table of Contents