我们如何实施“请稍候……"当应用程序繁忙时屏幕处于 flex 状态 [英] How we implement "Please wait ...." screen in flex when app is busy

查看:18
本文介绍了我们如何实施“请稍候……"当应用程序繁忙时屏幕处于 flex 状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个功能可以恢复我的应用程序的所有默认设置.这个过程可能需要一些时间,所以我想实现一个请稍候..."模式弹出窗口,让用户知道一切正常并且程序没有冻结.一旦函数完成其任务,我希望它删除消息,并恢复正常行为.

I have a function that restores all of the default settings of my application. This process can take a bit of time, so I would like to implement a "Please wait..." modal popup to let the user know that everything is alright and the program hasn't frozen. Once the function completes its task, I'd like for it to remove the message, and resume normal behavior.

替代文字 http://www.freeimagehosting.net/uploads/c5906da30c.jpg

推荐答案

开始时:

var waitingpopup:TitleWindow = new TitleWindow()
waitingpopup.title = "Please Wait ..."

PopupManager.addPopup(waitingpopup, this, true)

完成时:

PopupManager.removePopup(waitingpopup)

这篇关于我们如何实施“请稍候……"当应用程序繁忙时屏幕处于 flex 状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆