User Guide

FocusManager.defaultPushButton 729
Events inherited from the UIComponent class
The following table lists the events the FocusManager class inherits from the
UIComponent class.
FocusManager.defaultPushButton
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004 and Flash MX Professional 2004.
Usage
focusManager.defaultPushButton
Description
Property; specifies the default push button for an application. When the user presses Enter
(Windows) or Return (Macintosh), the listeners of the default push button receive a
click
event. The default value is
undefined and the data type of this property is object.
The Focus Manager uses the emphasized style declaration of the SimpleButton class to
visually indicate the current default push button.
The value of the
defaultPushButton property is always the button that has focus. Setting
the
defaultPushButton property does not give initial focus to the default push button. If
there are several buttons in an application, the button that currently has focus receives the
click event when Enter or Return is pressed. If some other component has focus when Enter
or Return is pressed, the
defaultPushButton property is reset to its original value.
Example
The following code sets the default push button to the OKButton instance:
focusManager.defaultPushButton = OKButton;
Event Description
UIComponent.focusIn Broadcast when an object receives focus.
UIComponent.focusOut Broadcast when an object loses focus.
UIComponent.keyDown Broadcast when a key is pressed.
UIComponent.keyUp Broadcast when a key is released.