鼠标经过图片效果

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
 <![CDATA[
  private function blurit():void{
   blur.play();   
  }
 ]]>
</mx:Script>
<mx:Blur blurXFrom="100" blurXTo="0" blurYFrom="100" blurYTo="0" id="blur" target="{img1}" />
<mx:Fade alphaFrom="0" alphaTo="1" id="fadein" duration="1000"/>

  <mx:ViewStack id="stack1">
   <mx:Panel id="panel" title="panel" width="475" height="353" layout="absolute" horizontalCenter="0" verticalCenter="0">
     <mx:Image source="1.png" rollOver="blurit()" creationCompleteEffect="{fadein}" id="img1"  height="313" width="377.5" x="67.5" y="0"/>
   </mx:Panel> 
  </mx:ViewStack>
 
  <mx:ViewStack id="stack2">
 
  </mx:ViewStack>
</mx:Application>

    A+
发布日期:2009年12月13日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: