手机
当前位置:查字典教程网 >编程开发 >Flex >flex小技巧之加载GIF图片
flex小技巧之加载GIF图片
摘要:一、下载GIFPlayer包二、源码如下:

一、下载GIFPlayer包

二、源码如下:

<"1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Script> <![CDATA[ import org.bytearray.gif.player.GIFPlayer; private var gifPlay:GIFPlayer=new GIFPlayer(); private var gifPlay2:GIFPlayer=new GIFPlayer(); private function init():void{ var req:URLRequest=new URLRequest("emergency/emergencyImg/mark.gif"); gifPlay.load(req); gifImg.addChild(gifPlay); } ]]> </fx:Script> <fx:Declarations> <> </fx:Declarations> <mx:TitleWindow title="abc" id="ADwindow" width="400" height="283" > <mx:Image id="gifImg" width="221" height="92" creationComplete="init()"/> </mx:TitleWindow> </s:Application>

【flex小技巧之加载GIF图片】相关文章:

Flex实现双轴组合图的设计思路及代码

flex是什么 Flex介绍

flex动态加载swf皮肤示例代码

flex调用webservice中的自定义类的方法

flex actionScript时间处理相加返回相加后的date

flex实现股票行情走势图示例代码

Flex字体加粗问题只能对英文的字体加粗

Flex自定义右键菜单具体实现

flex与js通信与彼此之间的互调整理(一)

flex不显示GIF图片问题的另类解决方法

精品推荐
分类导航