home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Samsung New PC Studio
/
Samsung_new_Pc_studio.iso
/
Experience
/
Pt_br
/
timeline.swf
/
scripts
/
frame_2
/
DoAction.as
Wrap
Text File
|
2007-09-20
|
3KB
|
92 lines
if(!_level100.NOFIRSTTIME)
{
autoSkipTimeO = getTimer();
}
_quality = "low";
stop();
_level100.statusNow = "main";
_level200.snd.gotoAndPlay("snd1");
draw_mc.lineStyle(1,16777215,50);
draw_mc.moveTo(mn0._x,mn0._y);
mn0.ctrlX = -50;
mn0.ctrlY = random(400) + 100;
timeMC.onEnterFrame = function()
{
if(!_level100.NOFIRSTTIME)
{
autoSkipTime = Math.floor((getTimer() - autoSkipTimeO) / 1000);
if(autoSkipTime >= 5)
{
_level100.NOFIRSTTIME = true;
delete this.onEnterFrame;
mn1.onRelease();
}
}
};
this.onEnterFrame = function()
{
draw_mc.clear();
draw_mc.lineStyle(1,16763904,30);
draw_mc.moveTo(mn0._x,mn0._y);
i = 1;
while(i <= 6)
{
mn = this["mn" + i];
mn.ctrlX = this["mn" + i]._x + (this["mn" + i]._x - this["mn" + (i + 1)]._x);
mn.ctrlY = mn._y + (mn._y - this["mn" + (i - 1)].ctrlY);
draw_mc.curveTo(mn.ctrlX,mn.ctrlY,mn._x,mn._y);
draw_mc.moveTo(this["mn" + (i - 1)]._x,this["mn" + (i - 1)]._y);
i++;
}
draw_mc.lineStyle(1,16776960,20);
draw_mc.moveTo(mn0._x,mn0._y);
i = 1;
while(i <= 6)
{
mn = this["mn" + i];
mn.ctrlX = this["mn" + i]._x + (this["mn" + i]._x - this["mn" + (i + 1)]._x);
mn.ctrlY = mn._y + (mn._y - this["mn" + (i - 1)].ctrlY);
draw_mc.moveTo(this["mn" + (i - 1)]._x,this["mn" + (i - 1)]._y);
draw_mc.curveTo(mn.ctrlX,mn.ctrlY,mn._x,mn._y);
i++;
}
draw_mc.lineStyle(1,16776960,20);
draw_mc.moveTo(mn0._x,mn0._y);
i = 1;
while(i <= 6)
{
mn = this["mn" + i];
mn.ctrlX = this["mn" + i]._x + (this["mn" + i]._x - this["mn" + (i + 1)]._x);
mn.ctrlY = mn._y + (mn._y - this["mn" + (i - 1)].ctrlY);
draw_mc.moveTo(this["mn" + (i - 1)]._x,this["mn" + (i - 1)]._y);
draw_mc.curveTo(mn.ctrlX,mn.ctrlY,mn._x,mn._y);
i++;
}
};
i = 1;
while(i <= 5)
{
mn = this["mn" + i];
mn.num = i;
mn._x = mn.oX = mn.destX = this["pos" + i]._x;
mn._y = mn.oY = mn.destY = this["pos" + i]._y;
mn._xscale = mn._yscale = 1000 * mn.num;
mn.destS = mn.oS = random(80) + 60;
mn.onEnterFrame = function()
{
this.dX = this.destX + (300 - _root._xmouse) * 0.05 * Math.floor(this._xscale / 50) - this._x;
this.dY = this.destY + (300 - _root._ymouse) * 0.1 * Math.floor(this._yscale / 50) - this._y;
this._x += this.dX * 0.1;
this._y += this.dY * 0.2;
this.dS = this.destS - this._xscale;
this._xscale += this.dS * 0.4;
this._yscale = this._xscale;
this._alpha = this._xscale;
if(Math.floor(mn3.dX) <= 0 && Math.floor(mn3.dY) <= 0 && Math.floor(mn3.dS) <= 0)
{
play();
}
};
i++;
}