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