0514-86177077
9:00-17:00(工作日)
一、下载GIFPlayer包
二、源码如下:
?xml version="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 eclipse整合spring
下一篇:Flex中Array的IndexOf 的作用示例介绍