喜气洋洋贺新年
原创
动画宽高∶ 1200*650 动画地址∶http://aaa.6000y.com/cyb700416/it/urv.swf
人间有爱音画网∶ http://ccc.51xjz.com/818632/index.asp?xAction=xReadNews&NewsID=152
作品效果灯笼转动制作步骤
1∶首先导进灯笼图片。2∶插入影片剪辑命名为 〈导入场景〉。3∶接着在转4次影片剪辑在转一次为图形元件在第3次转的影片剪辑里面(也就是影片剪辑元件3)如下图
在动作面板输入语句
onClipEvent (enterFrame)
{
x = Math.cos(angle * 3.141593 / 180) * radius + xcenter;
z = Math.sin(angle * 3.141593 / 180) * radius + zcenter;
scale = Per / (Per + z);
setProperty("", _x, x * scale + xcenter);
setProperty("", _y, y * scale + ycenter);
setProperty("", _yscale, scale * 20);
setProperty("", _xscale, scale * 20);
duplicateMovieClip(this, "ball0.1", angle / Angle_Inc);
angle = angle + speed;
if (angle > 359)
{
angle = angle - 360;
} // end if
}
在动作面板输入语句
onClipEvent (enterFrame)
{
x = Math.cos(angle * 3.141593 / 180) * radius + xcenter;
z = Math.sin(angle * 3.141593 / 180) * radius + zcenter;
scale = Per / (Per + z);
setProperty("", _x, x * scale + xcenter);
setProperty("", _y, y * scale + ycenter);
setProperty("", _yscale, scale * 20);
setProperty("", _xscale, scale * 20);
duplicateMovieClip(this, "ball0.1", angle / Angle_Inc);
angle = angle + speed;
if (angle > 359)
{
angle = angle - 360;
} // end if
}
作品3D效果制作步骤
1 ∶导入5张小姑娘图片。2∶插入影片剪辑命名为〈元件1〉分别第1,11,21,31,41,帧把相应的图片拉进场景在50帧插入帧。4,插入影片剪辑命名为〈总链接〉如下图设置连接
在影片剪辑〈总链接〉里面的第一帧导进做好的小女孩影片剪辑〈元件1〉宽为24(根据图片的大小定数据)水平垂直剧中。在把这个元件1在转为影片剪辑命名为〈女1〉在点击进入〈女1 〉这个影片剪辑在转为图形元件 〈女2〉在第二帧插入空白关键帧,写福字体大小宽是15(自己看着修改大小)水平垂直剧中,在把这个字转为影片剪辑为〈福1〉在点击进入这个影片剪辑在转为图形元件为〈福2〉。图层1第一帧和第二帧显示如下图
在新建一图层第一帧打开动作面板点击停止语句stop如下图
5∶插入影片剪辑命名为〈导入场景〉打开动作面板输入语句
var a = {};
a.b = 200;
a.c = 9.000000E-003;
var d = {_x: Stage.width / 2};
var e = 280;
var mcc = this.createEmptyMovieClip("mcc", this.getNextHighestDepth());
mcc._x = d._x;
var r = 0;
mcc.onEnterFrame = function ()
{
this._y = this._y + r;
if (this._y > 280)
{
this._y = 280;
r = r * -8.000000E-001;
} // end if
r = r + 3.000000E-001;
};
var i = 0;
while (i < a.b)
{
var mc = mcc.attachMovie("mc", "mc" + i, i);
mc.X = 0;
mc.r = Math.cos(i) * 280;
mc.Y = Math.sin(i) * 280;
mc.Z = 0;
mc.R = random(360);
mc.ID = i;
if (i != 0)
{
mc.nextFrame();
mc._rotation = random(360);
} // end if
if (i == 0)
{
mc._xscale = mc._yscale = 700;
mc.onPress = function ()
{
r = -6;
};
} // end if
mc.onEnterFrame = function ()
{
if (this.ID == 0)
{
this.Z = 200;
var _loc2 = mc / this.Z;
this._x = this.X * _loc2;
this._y = this.Y * _loc2;
this.swapDepths(-Math.floor(this.Z * 2));
}
else
{
this.R = this.R + a.c;
this.X = Math.cos(this.R) * this.r;
this.Z = Math.sin(this.R) * this.r + 500;
_loc2 = e / this.Z;
this._x = this.X * _loc2;
this._y = this.Y * _loc2;
this._xscale = this._yscale = 100 * _loc2;
this.swapDepths(-Math.floor(this.Z));
} // end else if
};
++i;
} // end while
把这个导入场景的影片剪辑导入作品中位置一般在做动画的场景外边的左上角才会出现在作品的中间
a.b = 200;
a.c = 9.000000E-003;
var d = {_x: Stage.width / 2};
var e = 280;
var mcc = this.createEmptyMovieClip("mcc", this.getNextHighestDepth());
mcc._x = d._x;
var r = 0;
mcc.onEnterFrame = function ()
{
this._y = this._y + r;
if (this._y > 280)
{
this._y = 280;
r = r * -8.000000E-001;
} // end if
r = r + 3.000000E-001;
};
var i = 0;
while (i < a.b)
{
var mc = mcc.attachMovie("mc", "mc" + i, i);
mc.X = 0;
mc.r = Math.cos(i) * 280;
mc.Y = Math.sin(i) * 280;
mc.Z = 0;
mc.R = random(360);
mc.ID = i;
if (i != 0)
{
mc.nextFrame();
mc._rotation = random(360);
} // end if
if (i == 0)
{
mc._xscale = mc._yscale = 700;
mc.onPress = function ()
{
r = -6;
};
} // end if
mc.onEnterFrame = function ()
{
if (this.ID == 0)
{
this.Z = 200;
var _loc2 = mc / this.Z;
this._x = this.X * _loc2;
this._y = this.Y * _loc2;
this.swapDepths(-Math.floor(this.Z * 2));
}
else
{
this.R = this.R + a.c;
this.X = Math.cos(this.R) * this.r;
this.Z = Math.sin(this.R) * this.r + 500;
_loc2 = e / this.Z;
this._x = this.X * _loc2;
this._y = this.Y * _loc2;
this._xscale = this._yscale = 100 * _loc2;
this.swapDepths(-Math.floor(this.Z));
} // end else if
};
++i;
} // end while
把这个导入场景的影片剪辑导入作品中位置一般在做动画的场景外边的左上角才会出现在作品的中间
文章评论
一切随缘
新年好
逍遥自在
[em]e179[/em] [em]e160[/em]
秋色
我好久不做动画了[em]e113[/em]