flex Image闪烁的问题
谁能给我一个图片闪烁的例子?或是帮我写一个?头痛了,初学flex 请各位大侠帮忙啊
[解决办法]
http://www.zhuoqun.net/html/y2006/148.html
[解决办法]
最简单的放一个gif...
或者用Timer类
[解决办法]
<?xml version="1.0"?>
<!-- containers\layouts\MainMyLoginForm.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Script>
<![CDATA[
import flash.utils.Timer;
private function init():void
{
var mytimer:Timer=new Timer(100,0);
mytimer.addEventListener(TimerEvent.TIMER,timerHandler);
mytimer.start();
}
private function timerHandler(evt:TimerEvent):void
{
//cainiao.rotation+=10;
cainiao.visible=!cainiao.visible;
}
]]>
</mx:Script>
<mx:Button id="cainiao" label="xxcainiao.cnblogs.com" width="300" height="50" y="218" x="378"/>
</mx:Application>