
Button._alpha Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
459
on (press) {
// statements
}
However, one of the button events, keyPress, supports the Flash 5 on(keyPress) form only.
See Button keyPress for details.
For general information on creating event handlers, see Chapter 10. Note that as of Flash 6,
all button event handlers are also supported by the MovieClip class.
Button events are sent only to the button with which the mouse is interacting. If multiple
buttons overlap, the topmost button receives all events; no other buttons can respond, even
if the topmost button has no handlers defined.
In the following entries for Button property, method, and event descriptions:
• The hit area refers to the physical region of the button that must be under the mouse
pointer in order for the Flash button to be activated. (A Flash button’s hit area is
defined graphically when you create the button in the Flash authoring tool.)
• The Up, Over, and Down states correspond to the button frames of the same name in
the Flash authoring tool. These are displayed automatically when the mouse is not
over the Flash button’s hit area (Up), the mouse is over the Flash button’s hit area
(Over), or the mouse is depressed over the Flash button’s hit area (Down).
To enable Actions panel code-hinting for button