![MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference Download Page 532](http://html1.mh-extra.com/html/macromedia/flex-flex-actionscript-language/flex-flex-actionscript-language_reference_3387192532.webp)
532
Chapter 7: ActionScript for Flash
_focusrect
Availability
Flash Player 4.
Usage
_focusrect =
Boolean
;
Description
Property (global); specifies whether a yellow rectangle appears around the button or movie clip
that has keyboard focus. If
_focusrect
is set to its default value of
true
, then a yellow rectangle
appears around the currently focused button or movie clip as the user presses the Tab key to
navigate through objects in a SWF file. Specify
false
if you do not want to show the yellow
rectangle. This is a global property that can be overridden for specific instances.
Note:
If you use a component, then FocusManager overrides Flash Player’s focus handling, including
use of this global property.
Example
The following example demonstrates how to hide the yellow rectangle around any instances in a
SWF file when they have focus in a browser window. Create some buttons or movie clips and add
the following ActionScript:
_focusrect = false;
Change the publish settings to Flash Player 6, and test the SWF file in a browser window. Give
the SWF focus by clicking it in the browser window, and use the Tab key to focus each instance.
Pressing Enter or the Space key when
_focusrect
is disabled does not invoke the
onRelease
event handler as it does when
_focusrect
is enabled or
true
.
See also
MovieClip._focusrect
CHAPTER 7
ActionScript for Flash
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...