home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Acao
/
Titans
/
raven.swf
/
scripts
/
DefineSprite_172
/
frame_4
/
DoAction.as
Wrap
Text File
|
2006-01-05
|
781b
|
51 lines
n.gotoAndStop("tele");
delete onmousedown;
sy = n._y;
ro = 0.1;
r.esp = 1;
mouseup = 0;
onenterframe = function()
{
n._y = sy + math.sin(a++ * 0.1) * 10;
n._rotation += ro;
if(math.abs(n._rotation) > 4)
{
ro = - ro;
}
if(r.crash)
{
r.got = 0;
r.esp = 0;
r.crash = 0;
r.score += r.point;
r.rub2.removeMovieClip();
gotoAndPlay(1);
}
else if(r.hit)
{
r.esp = 0;
letgo();
gotoAndPlay(10);
}
else if(r.finish)
{
r.esp = 0;
letgo();
gotoAndPlay(15);
}
else if(mouseup)
{
r.esp = 0;
letgo();
gotoAndPlay(1);
}
};
onmouseup = function()
{
if(r.esp)
{
mouseup = 1;
}
};
stop();