_focusrect Global Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
_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( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net