如何在Actionscript 3中显示确认消息?
我使用Adobe Flex 3和as3来开发Air应用程序。
如何在Actionscript 3中显示确认消息?
我使用Adobe Flex 3和as3来开发Air应用程序。
Alert.show("Are you sure?", "Title",
mx.controls.Alert.YES | mx.controls.Alert.NO, this, alertEventHandler);
alertEventHandler
:function alertEventHandler(event:CloseEvent):void {
if(event.detail == Alert.YES) {
// pressed yes.
}
}
或者查看自定义对话框类:http://fatal-exception.co.uk/blog/?p=69
Alert.show(...);