Alert.buttonWidth

可用性

Flash Player 6 (6.0.79.0)。

版本

Flash MX Professional 2004。

用法

Alert.buttonWidth

描述

属性(类);更改按钮宽度的类(静态)属性。默认值为 100。

示例

在库中已具有 Alert 组件的情况下,向主时间轴的第一帧中添加这些 ActionScript 代码以调整按钮的大小:

import mx.controls.Alert;

// 调整按钮大小。
Alert.buttonHeight = 50;
Alert.buttonWidth = 150;

// 显示警告对话框。
Alert.show("Launch Stock Application?", "Stock Price Alert", Alert.OK | Alert.CANCEL);

请参阅

Alert.buttonHeight