home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / arcade_animal.swf / scripts / DefineSprite_116 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  294 b   |  11 lines

  1. thisX = getProperty("/p", _X);
  2. thisY = getProperty("/p", _Y);
  3. spX = getProperty("/spin1", _X);
  4. spY = getProperty("/spin1", _Y);
  5. difX = thisX - spX;
  6. difY = thisY - spY;
  7. xStp = difX / "4";
  8. yStp = difY / "4";
  9. setProperty("/spin1", _X, spX + xStp);
  10. setProperty("/spin1", _Y, spY + yStp);
  11.