Actionscript3.0动画编程中的几种特效举例

Actionscript3.0动画编程中的几种特效举例

public function jizhongtexiao() {
            // constructor code
            //遮帘过度效果
            //TransitionManager.start(_mc,{type:Blinds,direction:Transition.OUT,duration:2,easing:None.easeNone,numStrips:10,dimension:0});
            //淡化过度效果
            //TransitionManager.start(_mc,{type:Fade,direction:Transition.IN,duration:20,easing:Strong.easeOut});
            //飞行过度效果
            //TransitionManager.start(_mc,{type:Fly,direction:Transition.IN,duration:20,easing:Strong.easeOut,startPoint:9});
            //光圈过度效果
            //TransitionManager.start(_mc,{type:Iris,direction:Transition.IN,duration:10,easing:Strong.easeOut,startPoint:5,shape:Iris.CIRCLE});
            //照片过度
            //TransitionManager.start(_mc,{type:Photo,direction:Transition.IN,duration:20,easing:None.easeNone});
            //像素溶解
            //TransitionManager.start(_mc,{type:PixelDissolve,direction:Transition.IN,duration:20,easing:Regular.easeIn,xSections:30,ySections:30});
            //旋转过度
            //TransitionManager.start(_mc,{type:Rotate,direction:Transition.IN,duration:20,easing:Strong.easeInOut,ccw:false,degrees:1080});
            //挤压过渡
            //TransitionManager.start(_mc,{type:Squeeze,direction:Transition.IN,duration:20,easing:Elastic.easeOut,dimension:1});
            //划入划出过渡
            //TransitionManager.start(_mc,{type:Wipe,direction:Transition.IN,duration:20,easing:None.easeNone,startPoint:1});
            //缩放过渡
            TransitionManager.start(_mc,{type:Zoom,direction:Transition.IN,duration:20,easing:None.easeNone});

标签