home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Samsung New PC Studio
/
Samsung_new_Pc_studio.iso
/
Experience
/
Pt_br
/
timeline.swf
/
scripts
/
frame_47
/
DoAction.as
Wrap
Text File
|
2007-09-20
|
3KB
|
106 lines
stop();
_quality = "low";
var n = 1;
while(n <= 5)
{
if(n != _level100.mnNumNow)
{
delete eval("mn" + n).onEnterFrame;
delete eval("mn" + n).onRollOver;
delete eval("mn" + n).onRollOut;
delete eval("mn" + n).onRelease;
}
n++;
}
delete this.onEnterFrame;
t = 0;
picNum = 1;
speedY = 0.3;
speedS = 0.1;
firstStep = false;
var i = 1;
while(i <= 10)
{
pic = pic.duplicateMovieClip("pic" + i,10 + i);
pic._x = posCenter._x;
pic._y = posCenter._y;
pic.destX = 92 * (i - 1) + 62;
pic.destY = pic.oY = random(450) + 50;
pic.destS = 450 - Math.abs(posCenter._x - pic.destX) / 10;
pic.num = i;
_level200.snd.gotoAndPlay("snd1");
this["bgPic" + i]._x = 0;
this["bgPic" + i]._y = 0;
this["bgPic" + i]._xscale = this["bgPic" + i]._yscale = random(12) + 100;
this["bgPic" + i].setMask(pic);
eval("mn" + _level100.mnNumNow)._visible = false;
pic.onEnterFrame = function()
{
this.dX = this.destX - this._x;
this._x += this.dX * 0.6;
this.dY = this.destY - this._y;
this._y += this.dY * speedY;
this.dS = this.destS - this._xscale;
this._xscale += this.dS * speedS;
this._yscale = this._xscale;
if(subTitle._currentframe == 1)
{
subTitle.swapDepths(999);
subTitle.gotoAndPlay("start");
}
t++;
if(t > 300)
{
draw_mc.clear();
speedY = 0.2;
eval("pic" + picNum).destY = posCenter._y;
eval("pic" + picNum).destS = 50 - Math.abs(posCenter._x - eval("pic" + picNum).destX) / 5;
if(Math.round(eval("pic" + picNum).dS) <= 1)
{
eval("bgPic" + picNum).play();
if(!firstStep)
{
picNum++;
if(picNum > 11)
{
firstStep = true;
picNum = 1;
}
}
}
}
if(t > 400)
{
speedY = 0.6;
speedS = 0.2;
eval("pic" + picNum).destX = 92 * (picNum - 1) + 64;
eval("pic" + picNum).destY = 515;
eval("pic" + picNum).destS = 100;
if(Math.round(eval("pic" + picNum)._y) > 450)
{
eval("bgPic" + picNum)._visible = false;
eval("bgPic" + picNum).setMask(null);
eval("pic" + picNum).picClip.loadMovie(_level0.fPath + "thumb/" + _level100.mnNumNow + "_" + picNum + ".jpg");
eval("pic" + picNum).play();
eval("pic" + picNum)._alpha = 30;
if(picNum == 10)
{
nextFrame();
}
picNum++;
_level200.snd.gotoAndPlay("snd2");
}
if(Math.round(this.dX) == 0 && Math.round(this.dY) == 0 && Math.round(this.dS) == 0)
{
if(this.num == 10)
{
_quality = "high";
loadMovieNum(_level0.fPath + "movie" + _level100.mnNumNow + ".swf",10);
}
delete this.onEnterFrame;
}
}
};
i++;
}