
_focusrect Global Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
524
|
ActionScript Language Reference
See Also
“Executing Code in a String with eval,” in Chapter 4
_focusrect Global Property
the highlight state used for buttons and movie clips activated via the keyboard
Flash 4
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()
fscommand() Global Function
send a message to the Standalone Player ...