如何在 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.
}
}
或者查看自定义 Dialog 类:http://fatal-exception.co.uk/blog/?p=69
关于apache-flex - 如何在 Actionscript 3 中显示确认消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2392769/