home *** CD-ROM | disk | FTP | other *** search
/ One Click 5 / ONCE005.iso / Jogos / 1516.swf / scripts / DefineSprite_301 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-05-02  |  571 b   |  25 lines

  1. reach = getProperty("/m1", _xscale);
  2. if(getProperty("/m1", _X) + int(reach / "3") >= _X and _X >= getProperty("/m1", _X) - int(reach / "3") and getProperty("/m1", _Y) + int(reach / "2") >= _Y and _Y >= getProperty("/m1", _Y))
  3. {
  4.    tellTarget("")
  5.    {
  6.       gotoAndStop("nokey");
  7.    }
  8.    tellTarget("/keylevel1")
  9.    {
  10.       gotoAndStop("yellow");
  11.    }
  12.    tellTarget("/playersounds")
  13.    {
  14.       gotoAndStop("key");
  15.       play();
  16.    }
  17. }
  18. if(getProperty("/keylevel1", _currentframe) == "10")
  19. {
  20.    tellTarget("")
  21.    {
  22.       gotoAndStop("nokey");
  23.    }
  24. }
  25.