flex鼠标忙碌

来源:互联网 发布:信天游股票交易软件 编辑:程序博客网 时间:2024/05/29 18:55
 在项目中,经常由于访问后台数据量过大,导致响应慢,而前台没有提示,让操作人员误认为请求结束的现象,可以用下列方法解决。见代码:import mx.managers.CursorManager;     CursorManager.setBusyCursor();          //忙碌光标   CursorManager.removeBusyCursor();       //取消忙碌光标   CursorManager.removeAllCursors();       //恢复正常光标  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;         //使当前页面的父页面可用


 

原创粉丝点击