论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

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

文章类别:Flash | 发表日期:2008-9-21 20:09:00

  利用transitions类轻松创建图片过渡效果:
/UploadTeach/200705/2007053018545944.swf

主场景第一帧上:
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});
                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;
        }
        count.text = i;
        if (i>=16) {
                i = 0;
        }
}
myID = setInterval(tween, 2000, myMovieClip);
源文件下载: 过渡效果.rar
视频教程列表
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058