flex 鼠标忙碌
在项目中,经常由于访问后台数据量过大,导致响应慢,而前台没有提示,让操作人员误认为请求结束的现象,可以用下列方法解决。见代码:
import mx.managers.CursorManager;CursorManager.setBusyCursor(); //忙碌光标CursorManager.removeBusyCursor(); //取消忙碌光标CursorManager.removeAllCursors(); //恢复正常光标
?仅仅改变鼠标的样式是不够的,我们需要使当前页面不可用(即:鼠标和键盘不能进行任何操作),这样比较合理,我们可以用最简单的方法,见代码:
Application.application.enabled = false; //页面不可用Application.application.enabled = true; //页面可用this.parentApplication.enabled=false; //使当前页面的父页面不可用this.parentApplication.enabled=true; //使当前页面的父页面可用
?
正好是我找的,对我有帮助 2 楼 laobi1987 2012-04-09 多谢分享~