flash本身有一个缓动类, 下面是我总结的,应该是所有的过渡效果,缩放,渐变,窗帘,马赛克。自己尝试,有注释,不明白的q我 QQ:382273552 package { import flash.display.MovieClip; import fl.transitions.*; import fl.transitions.easing.*; import flash.utils.*; public class Zoom_T extends MovieClip { private var i:Number = 0; public function Zoom_T():void { setInterval(Play,2000); } public function Play():void { //缩放过渡: Zoom //TransitionManager.start(test_mc, {type:Zoom, direction:Transition.IN, duration:2, easing:None.easeNone}); //遮帘过渡:Blinds //TransitionManager.start(test_mc,{type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:20, dimension:0}); //淡化过渡:Fade //TransitionManager.start(test_mc, {type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone}); //飞行过渡:Fly //TransitionManager.start(test_mc,{type:Fly, direction:Transition.IN, duration:3, easing:None.easeNone, startPoint:7}); //光圈过渡:Iris //TransitionManager.start(test_mc, {type:Iris, direction:Transition.IN, duration:2, easing: None.easeNone, startPoint:5, shape:Iris.CIRCLE}); //照片过渡:Photo //TransitionManager.start (test_mc, {type:Photo, direction:Transition.IN, duration:1, easing:None.easeNone}); //像素溶解过渡:PixelDissolve //TransitionManager.start(test_mc,{type:PixelDissolve,direction:Transition.IN,duration:2,easing:None.easeNone,xSections:100,ySections:100}); //旋转过渡:Rotate //TransitionManager.start(test_mc, {type:Rotate, direction:Transition.IN, duration:1, easing:None.easeNone, ccw:true, degrees:90}); //挤压过渡:Squeeze //TransitionManager.start(test_mc, {type:Squeeze, direction:Transition.IN, duration:10, easing:None.easeNone, dimension:1}); //划入/划出过渡:Wipe //TransitionManager.start(test_mc, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:1}); //TransitionManager.start(test_mc, {type:Squeeze, direction: Transition.IN, duration: 2, easing:None.easeNone, dimension: 1}); //缓动过渡1: //TransitionManager.start(test_mc, {type:Zoom, direction:Transition.IN, duration:2, easing:Bounce.easeOut}); //缓动过渡2 //TransitionManager.start(test_mc, {type:Zoom, direction:Transition.IN, duration: 2, easing:Bounce.easeOut}); i ++; myMovieClip.gotoAndStop(i);; switch (i) { case 1 : TransitionManager.start(myMovieClip, {type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:10, dimension:0}); break; case 2 : TransitionManager.start(myMovieClip, {type:Blinds, direction:Transition.IN, duration:2, easing:None.easeNone, numStrips:10, dimension:1}); break; case 3 : TransitionManager.start(myMovieClip, {type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone}); break; case 4 : TransitionManager.start(myMovieClip, {type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE}); break; case 5 : TransitionManager.start(myMovieClip, {type:Photo, direction:Transition.IN, duration:1, easing:None.easeNone}); break; case 6 : TransitionManager.start(myMovieClip, {type:PixelDissolve, direction:Transition.IN, duration:2, easing:None.easeNone, xSections:20, ySections:20}); break; case 7 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:1}); break; case 8 : TransitionManager.start(myMovieClip, {type:Fade, direction:Transition.IN, duration:2, easing:None.easeNone}); break; case 9 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:2}); break; case 10 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:3}); break; case 11 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:4}); break; case 12 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:5}); break; case 13 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:6}); break; case 14 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:7}); break; case 15 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:8}); break; case 16 : TransitionManager.start(myMovieClip, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:9}); break; case 17: TransitionManager.start(myMovieClip, {type:Squeeze, direction:Transition.IN, duration:2, easing:None.easeNone, dimension:1}); break; case 18: TransitionManager.start(myMovieClip, {type:Squeeze, direction:Transition.IN, duration:2, easing:None.easeNone, dimension:0}); break; case 19: TransitionManager.start(myMovieClip, {type:Zoom, direction:Transition.IN, duration:2, easing:Bounce.easeOut}); break; case 20: TransitionManager.start(myMovieClip, {type: Zoom, direction:Transition.IN, duration: 2, easing: None.easeNone}); break; } } } }