首页 »Flash教程 » flash特效:Flash制作漂亮的 3重卷动相册特效动画 »正文
flash特效:Flash制作漂亮的 3重卷动相册特效动画
来源: 发布时间:星期五, 2009年1月23日 浏览:29次 评论:0
又是 个用Flash制作 漂亮相册 教程 还是那句话本站相册 教程已经不少了!今天简单给大家描述下这个相册 制作过程 查看效果:http://flashview.ddvip.com/2007_08/31728.swf 下面给大家简单讲述 下制作过程 首先修改文档属性: 图1 制作 个影片剪辑当作该相册 背景 非常简单 !效果如下: 图2 下面我们就要准备好图片 缩略图 并且转变为MC 然后在舞台上排放整齐 并且给每个影片剪辑命名例子名thumb0 thumb1 ... thumb7 图3 然后把图片转换为影片剪辑 设置如下: 图4 然后制作 个遮照影片剪辑 图5 然后建立 个Action层 图6 第 帧 ActionScript如下: order = [["0", "1", "2", "3", "4", "5", "6", "7"], ["6", "0", "5", "7", "3", "1", "2", "4"], ["4", "7", "5", "2", "0", "3", "6", "1"]]; for (var j = 0; j<order.length; j) { var i = this.createEmptyMovieClip("images"+j, j); var m = this.attachMovie("mask", "mask"+j, 100+j); m._x = 224 target0=target1=target2=223; m._y = 57+(90*j); i._y = 57; i.Mask(m); for (var k = 0; k<order[0].length; k) { var img = i.attachMovie("image"+order[j][k], "image"+k, 1000+k); img._x = (img._width*k); var thumb = this["thumb"+order[j][k]]; thumb["pos"+j] = target1+(k*-img._width); thumb.onPress = function { _root.target0 = this.pos0; _root.target1 = this.pos1; _root.target2 = this.pos2; }; thumb.onRollOver = function { this._alpha = 60; }; thumb.onRollOut = function { this._alpha = 100; }; } } target0 = thumb4.pos0; target1 = thumb4.pos1; target2 = thumb4.pos2; speed = 10; this.onEnterFrame = function { images0._x ((target0)-images0._x)/speed; images1._x ((target1)-images1._x)/speed; images2._x ((target2)-images2._x)/speed; }; 按Ctrl+Enter测试吧!
相关文章
读者评论
发表评论
|
|