我们如何实施“请稍等....”在应用程序忙时显示屏幕 [英] How we implement "Please wait ...." screen in flex when app is busy

查看:141
本文介绍了我们如何实施“请稍等....”在应用程序忙时显示屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



alt text http://www.freeimagehosting.net/uploads/c5906da30c.jpg

  var waitingpopup:TitleWindow = new TitleWindow()$ b解决方案


PopupManager.addPopup(waitingpopup,this,true)

$
$ b



  PopupManager.removePopup(waitingpopup)


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.

alt text http://www.freeimagehosting.net/uploads/c5906da30c.jpg

解决方案

On start:

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

PopupManager.addPopup(waitingpopup, this, true)

On complete:

PopupManager.removePopup(waitingpopup)

这篇关于我们如何实施“请稍等....”在应用程序忙时显示屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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