Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache flex 如何在Actionscript 3中显示确认消息?_Apache Flex_Actionscript 3_Air - Fatal编程技术网

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.
    }
}