home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 51
/
Mobiclic51.iso
/
mac
/
DATA
/
CALEND
/
VIDEOS
/
PLOK49.SWF
/
scripts
/
DefineSprite_467
/
frame_38
/
DoAction.as
Wrap
Text File
|
2002-11-06
|
565b
|
36 lines
y = plok._y;
sort = 350 >= y;
sorti = 350 < y;
if(sort)
{
plok._y = y + 10;
}
if(sorti)
{
plok._visible = false;
stopAllSounds();
zik.gotoAndPlay(2);
with(_root)
{
gotoAndPlay("retour1");
}
}
pos = plok._x;
droite = pos + 10 < _xmouse && pos < 310;
gauche = _xmouse < pos - 10 && 0 < pos;
milieu = pos - 10 < _xmouse && _xmouse < pos + 10;
if(droite)
{
plok._x = pos + 10;
plok.gotoAndStop(3);
}
if(gauche)
{
plok._x = pos - 10;
plok.gotoAndStop(2);
}
if(milieu)
{
plok.gotoAndStop(1);
}