mx.controls.Alert
Alert.show() 方法:
public static show( text:String, //提示内容
title:String=null, //对话框标题
flags:uint=mx.controls.Alert.OK, //显示按钮
parent:Sprite=null, //父对象
clickListener:Function=null, //点击事件
iconClass:Class=null, //图标
defaultButton:uint=mx.controls.Alert.OK //默认按钮);
例1:
Alert.show('Hello World!', 'Message');
例2:
Alert.show("Do you want to save your changes?", "Save Changes", 3, this, alertClickHandler);
例3:
Alert.show("Select a color:","Color Selection",1|2|8,this);