
Button.getDepth() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
461
When _focusrect is set to false, Flash displays only the Over state of keyboard-focused
buttons. When
_focusrect is set to true, Flash displays the Over state and the yellow rect-
angle. When it is
null (the default), the value of the global _focusrect property is used. To
disable the yellow focus rectangle for all buttons in a movie, set the global
_focusrect prop-
erty to
false. Note that the value of the global _focusrect property is not reflected by the
_focusrect property of individual button instances. Furthermore, setting an individual
button’s
_focusrect property overrides the global setting for that button.
Usage
The Tab key does not work reliably in Test Movie mode unless Control ➝ 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
_focusrect, MovieClip_.focusrect
Button.getDepth() Method
returns the position of the button in the content stack
Flash 6
theButton.getDepth()
Returns
An integer depth level.
Description
Buttons, movie clips, and text fields are all placed in the Player in an order that governs
how objects stack visually. An internal integer depth property indicates each object’s order
in the ...