see you |
|
魔幻线flash |
|
对duplicateMovieClip函数的应用。
第一帧:
i=1
max=120
setProperty(”0″,_visible,false)
第二帧:
duplicateMovieClip(i-1, i, i);
setProperty(i, _alpha, getProperty(i-1, _alpha)-0.1);
setProperty(i, _xscale, getProperty(i-1, _xscale)+5);
setProperty(i, _y, getProperty(i-1, _y)+0.9);
setProperty(i, _rotation,random(721) );
i = i+1;
第三帧:
if (i<=max) {
gotoAndPlay(2);
} else {
gotoAndPlay(1);
}
相关日志
学痞网logo1 |
|
其中云朵的as是:
getURL(”FSCommand:allowscale”, false);
–_root.y1._x;
if (y1._x < -50)
{
_root.y1._x = 838;
} // end if
_root.y2._x = _root.y2._x - 1 + 3.333333E-001;
if (y2._x < -30)
{
_root.y2._x = 838;
} // end if
_root.y3._x = _root.y3._x - 1 + 6.666667E-001;
if (y3._x < -20)
{
_root.y3._x = 800;
} // end if
_root.y4._x = _root.y4._x - 1 + 8.500000E-001;
if (y4._x < -110)
{
_root.y4._x = 830;
} // end if
_root.y5._x = _root.y5._x - 1 + 9.200000E-001;
if (y5._x < -90)
{
_root.y5._x = 850;
}
]
