首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

利用transitions类创造图片过渡效果

2013-10-27 
利用transitions类创建图片过渡效果利用transitions类轻松创建图片过渡效果点击查看Flash:[urlhttp://spa

利用transitions类创建图片过渡效果

利用transitions类轻松创建图片过渡效果
点击查看Flash:
[url=http://space.flash8.net/bbs/attachment.php?aid=311487]
http://space.flash8.net/bbs/attachment.php?aid=311487
[/url]
主场景第一帧上:
myMovieClip.swapDepths(myMovieClip0);
var?i:Number?=?0;
function?tween(obj)?{
????????i++;
????????myMovieClip0.gotoAndStop(i-1);
????????obj.gotoAndStop(i);
????????import?mx.transitions.*;
????????import?mx.transitions.easing.*;
????????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,?{typehoto,?direction:Transition.IN,?duration:1,?easing:None.easeNone});
????????????????break;
????????case?6?:
????????????????TransitionManager.start(myMovieClip,?{typeixelDissolve,?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});
本文转自:http://www.5uflash.com/flashjiaocheng/Flashaschengxu/619.html

热点排行