专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > Flex

flex 特效,该怎么处理

发布时间:2011-06-27 20:42:23 文章来源:www.iduyao.cn 采编人员:星星草
flex 特效
http://www.lanrentuku.com/js/daohang-527.html
谁大家帮忙看下这种特效用flex怎么好实现?或是有类似的源码提供一下,非常感谢!

------解决方案--------------------
没有那种特效的源码。下面有些特效的例子,希望对你能有帮助
http://blog.csdn.net/huangxin5257/archive/2010/03/26/5418633.aspx
------解决方案--------------------
你看看能不能在下面的例子基础上改改
XML code
<?xml version="1.0" encoding="utf-8"?>
<!-- Simple example to demonstrate the Zoom effect. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

    <mx:Script>
        <![CDATA[        
            import flash.events.MouseEvent;

            public function doZoom(event:MouseEvent):void {
                
                zoomAll.play([event.target], event.type == MouseEvent.ROLL_OUT ? true : false);
            }
        ]]>    
    </mx:Script>

    <mx:Zoom id="zoomAll" zoomWidthTo="1" zoomHeightTo="1" zoomWidthFrom=".5" zoomHeightFrom=".5"  />
    
    <mx:Panel title="Zoom Effect Example" width="95%" height="95%" horizontalAlign="center"
        paddingTop="5" paddingLeft="10" paddingRight="10" paddingBottom="5">

        <mx:Text width="100%" color="blue"
            text="Move the mouse over the image to enlarge it. Move the mouse off of the image to shrink it."/>
        <mx:HBox horizontalGap="20">
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
        <mx:Image
            source="@Embed(source='assets/Nokia_6630.png')"
            scaleX=".5" scaleY=".5"
            rollOver="doZoom(event)"
            rollOut="doZoom(event)"/>
            
        </mx:HBox>

    </mx:Panel>
</mx:Application>

------解决方案--------------------
楼上的肯定不对,应该是通过面板里鼠标的位置来计算图标的大小,图标都放在面板里的。楼主慢慢看哈
------解决方案--------------------
http://demo.quietlyscheming.com/fisheye/index.html

使用这种鱼眼效果改
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: