我需要显示一个模式确认对话框,选择yes no按钮,并获得用户在ActionScript 3中点击的结果。Actionscript 3消息框?
ok保存diaglog不会在退出被调用时退出应用程序。
Alert.show("Do you realy want to delete", "My Title", 3,null,
function alertClickHandler(event:CloseEvent):void
{
if (event.detail==Alert.YES)
{
canvas.save(); // does not popup when next line is present
exit();
}
});
阿卜杜勒哈利克
为什么要使用退出()?取下它 – 2011-03-04 09:07:32
我需要在图像保存后分机不应该如何保存和退出功能假设工作。 – 2011-03-04 09:14:52
对不起,但真的很难理解你。那么,现在有什么问题?你想让你的应用退出吗? – 2011-03-04 09:20:34