Flex BusyIndicator

来源:互联网 发布:网络监控安装步骤图解 编辑:程序博客网 时间:2024/05/01 08:42
原来为了在跟远程服务端操作时屏蔽用户操作,我采用的方法是在弹出窗口中播放gif。

但gif播放有两个问题:
1. Flex本身并不支持gif播放,使用了第三方库。
2. 效果不好,明显看出边缘并不平滑,颜色过渡也不好。在透明背景下使用尤其明显。

我看Flex中的Busy图标显示的很漂亮,想为什么不可以直接用Flex自带的效果呢?

查了一下,果然有BusyIndicator,编译不通过说找不到。原来BusyIndicator是属于Mobile
开发的,但没说不可以用在Desktop应用上,把mobilecomponents.swc从flex sdk中拷贝到
libs下,就可以了,效果满意。

转载:http://blog.sina.com.cn/s/blog_538d55be0100z7ac.html



BusyIndicator is currently in the mobilecomponents.swc which isn't included in a default desktop Flex project.  You can add that swc (/path/to/flex/sdk/frameworks/libs/mobile/mobilecomponents.swc) to your desktop project to give you access to it.

 

Please vote for this enhancement to have it moved to spark.swc so it is available in both desktop and mobile projects by default:


参考:http://forums.adobe.com/thread/853678