Actionscript 3 消息框?
我需要显示一个带有是或否按钮的模式确认对话框,并获取用户在 ActionScript 3 中单击的结果,
确定保存对话框不会在调用退出时应用程序退出。
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();
}
} );
阿卜杜勒·哈利克
I need to show a modal confirmation dialog with yes no buttons and get the results what the user has clicked in ActionScript 3
ok save diaglog does not who up when exit is called the application just exits.
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();
}
} );
Abdul Khaliq
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是警报框的示例:
This is the example for an Alert box:
Actionscript 中的调用有时是异步的。
特别调用文件保存和所有。
你真正应该做的是:
修改保存函数如下:
The calls in Actionscript are sometimes asynchronous.
Specially calls to file saves and all.
What you should really do is :
Modify the save function as follows: