home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / pepsi_pinball.swf / scripts / DefineSprite_197 / frame_5 / DoAction.as
Encoding:
Text File  |  2006-05-18  |  217 b   |  10 lines

  1. incX = (endPos.x - startPos.x) / 20;
  2. incY = (endPos.y - startPos.y) / 20;
  3. ball._x += incX;
  4. ball._y += incY;
  5. delta = Math.abs(endPos.x - ball._x) + Math.abs(endPos.y - ball._y);
  6. if(delta < 10)
  7. {
  8.    start();
  9. }
  10.