![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.0.79.
Flash MX 2004 and Flash MX Professional 2004.
focusManager.defaultPushButton
Property; specifies the default push button for an application. When the user presses the Enter key (Windows) or Return key (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 FocusManager 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 is currently focused 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.
The following code sets the default push button to the OKButton
instance:
FocusManager.defaultPushButton = OKButton;
FocusManager.defaultPushButtonEnabled
, FocusManager.sendDefaultPushButtonEvent()
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |