Flex BusyIndicator
发布时间:2020-12-15 04:28:46 所属栏目:百科 来源:网络整理
导读:原来为了在跟远程服务端操作时屏蔽用户操作,我采用的方法是在弹出窗口中播放gif。 但gif播放有两个问题: 1. Flex本身并不支持gif播放,使用了第三方库。 2. 效果不好,明显看出边缘并不平滑,颜色过渡也不好。在透明背景下使用尤其明显。 我看Flex中的Busy
原来为了在跟远程服务端操作时屏蔽用户操作,我采用的方法是在弹出窗口中播放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
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |