Alert.cancel - MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference

Components language reference
Table of Contents

Advertisement

Description
Property (class); a class (static) property that changes the width of the buttons. The default
value is 100.
Example
With an Alert component already in the library, add this ActionScript to the first frame of the
main timeline to resize the buttons:
import mx.controls.Alert;
// Adjust button sizes.
Alert.buttonHeight = 50;
Alert.buttonWidth = 150;
// Show alert dialog box.
Alert.show("Launch Stock Application?", "Stock Price Alert", Alert.OK |

Alert.CANCEL);

See also
Alert.buttonHeight
Alert.CANCEL
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Alert.CANCEL
Description
Property (constant); a property with the constant hexadecimal value 0x8. This property can
be used for the
or
parameter of the
method. When
flags
defaultButton
Alert.show()
used as a value for the
parameter, this property indicates that a Cancel button should
flags
be displayed in the Alert window. When used as a value for the
parameter,
defaultButton
the Cancel button has initial focus and is triggered when the user presses Enter (Windows) or
Return (Macintosh). If the user tabs to another button, that button is triggered when the user
presses Enter.
Alert.CANCEL
77

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents