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

Apache flex 如何在Actionscript 3中显示确认消息?,apache-flex,actionscript-3,air,Apache Flex,Actionscript 3,Air,如何在Actionscript 3中显示确认消息 我将AdobeFlex3和as3用于Air应用程序您可以为此使用警报类 Alert.show(...); 然后使用以下代码创建一个alertEventHandler: function alertEventHandler(event:CloseEvent):void { if(event.detail == Alert.YES) { // pressed yes. } } 或者检查一个自定义对话框类:我得到这个

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


我将AdobeFlex3和as3用于Air应用程序

您可以为此使用警报类

Alert.show(...);
然后使用以下代码创建一个
alertEventHandler

function alertEventHandler(event:CloseEvent):void {
    if(event.detail == Alert.YES) {
        // pressed yes.
    }
}

或者检查一个自定义对话框类:

我得到这个错误:1119:通过引用静态类型类访问可能未定义的属性No.,正确。对不起,打错了。
function alertEventHandler(event:CloseEvent):void {
    if(event.detail == Alert.YES) {
        // pressed yes.
    }
}