home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2001 June
/
HDC50.iso
/
FreeSoftware
/
MicrosoftXP
/
extended_main.swf
/
scripts
/
DefineSprite_16
/
frame_2
/
DoAction.as
Wrap
Text File
|
2001-03-22
|
377b
|
12 lines
dragX = getProperty(action, _X);
dragY = getProperty(action, _Y);
squareX = getProperty(name, _X);
squareY = getProperty(name, _Y);
dif1X = dragX - squareX;
dif1Y = dragY - squareY;
xStp = difX / Number(speed);
yStp = difY / Number(speed);
setProperty(name, _X, Number(squareX) + Number(xStp));
setProperty(name, _Y, Number(squareY) + Number(yStp));
gotoAndPlay(1);