apache-flex - 如何在 Actionscript 3 中显示确认消息?

标签 apache-flex actionscript-3 air

如何在 Actionscript 3 中显示确认消息?

我使用 Adob​​e 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/

相关文章:

performance - Adobe AIR 与 iOS 8 相关的问题和性能不佳

php - 关闭浏览器时自动注销用户

apache-flex - 从自定义容器向Flex/Flash提供原始MP3/AAC数据

actionscript-3 - Minimax with Alpha-beta pruning,得到结果

actionscript-3 - 是否可以在 Action Script 3 中动态创建用户定义类的实例?

android - FlashDevelop 无法在设备上安装 Android 应用

android - AIR 到 Flash Player,反之亦然

apache-flex - 如何解压缩使用 ByteArray.compress 创建的 zlib 文件?

apache-flex - "Error #1014: Class mx.core::BitmapAsset could not be found"尝试使用运行时共享库​​时

actionscript-3 - 使用 ActionScript 3 访问 Google AppEngine Cloud Endpoints?