`
caijingbin0207
  • 浏览: 105840 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

flex 鼠标忙碌

    博客分类:
  • FLEX
阅读更多

                  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;         //使当前页面的父页面可用

0
9
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics