home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / Graviton.swf / scripts / DefineSprite_54 / frame_7 / DoAction.as
Encoding:
Text File  |  2005-08-05  |  347 b   |  14 lines

  1. x = getProperty("/ball/", _X);
  2. y = getProperty("/ball/", _Y);
  3. myx = x1 + eval("../:x");
  4. myy = y1 + eval("../:y");
  5. dx = myx - x;
  6. dy = myy - y;
  7. xtolerance = width;
  8. ytolerance = height;
  9. if(dx < xtolerance and - xtolerance < dx and dy < ytolerance and - ytolerance < dy and top + slope < y)
  10. {
  11.    unloadMovie("/ball");
  12.    call("crash");
  13. }
  14.