您的位置:首页 > 移动开发

flex类似鱼眼效果

2009-11-23 17:02 337 查看
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:local="*" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()">
<!--特效-->
<mx:Parallel id="seq">
<mx:Resize widthTo="85" heightTo="85" duration="400"/>
<mx:Fade alphaFrom="0.5" alphaTo="1" duration="1000"/>
<mx:Glow strength="5" color="yellow" knockout="true" inner="true"/>
</mx:Parallel>

<mx:Parallel id="pal">
<mx:Resize widthTo="65" heightTo="65" duration="600"/>
<mx:Fade alphaFrom="0.5" alphaTo="1" duration="500"/>
</mx:Parallel>

<mx:TitleWindow width="664" height="432" layout="horizontal" verticalScrollPolicy="off">
<mx:VBox width="105" height="376" paddingTop="5">
<mx:Image width="65" height="65" source="img/phone1_200x400.jpg" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="img/phone2_200x400.jpg" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="img/phone3_200x400.jpg" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="img/phone4_200x400.jpg" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="img/phone5_200x400.jpg" rollOverEffect="{seq}"

rollOutEffect="{pal}" filters="{[new DropShadowFilter(5,45)]}"/>

</mx:VBox>
<mx:HBox paddingLeft="10" width="363" verticalScrollPolicy="off">
<mx:Image width="65" height="65" source="images/gallery_icon_up.png" rollOverEffect="{seq}"

rollOutEffect="{pal}" filters="{[new DropShadowFilter(5,45)]}"/>
<mx:Image width="65" height="65" source="images/about_icon_up.png" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="images/participate_icon_up.png" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
<mx:Image width="65" height="65" source="images/badge.png" rollOverEffect="{seq}"

rollOutEffect="{pal}"/>
</mx:HBox>

</mx:TitleWindow>
</mx:Application>


鱼眼效果:http://dev.getoutsmart.com/labs/dock/

上面代码只是使用flex自带的效果,远不及上面鱼眼效果
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息