
Button.trackAsMenu Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
473
Button._target Property
the target path of the button, in slash syntax
Flash 6
read/write
theButton._target
Description
The _target property represents the path to theButton in a Flash 4–style slash notation
string. For example, if
go_btn resides on the main movie timeline, go_btn’s _target prop-
erty is “
/go_btn”. To retrieve a string that gives the path to a button in dot notation, use the
global targetPath() function. Because slash notation is deprecated, this property is not
commonly used and is supported only for consistency with the legacy
MovieClip._target
property.
See Also
targetPath(), MovieClip._target
Button.trackAsMenu Property
modifies the button’s onRelease() handler requirements, enabling menu-style behavior
Flash 3; property form introduced in Flash 6
read/write
theButton.trackAsMenu
Description
The Boolean trackAsMenu property modifies the conditions that cause theButton’s
onRelease() event handler to execute. It is normally used to turn a group of buttons into a
menu. When
trackAsMenu is undefined (the default) or false, a button’s onRelease()
handler will execute only when the mouse is both pressed and released over the button.
When
trackAsMenu is true, releasing the mouse over the button will always trigger its
onRelease( ...