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

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