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

  1. _X = _X + "12";
  2. _xscale = "100" + "0.2" * (_Y - "200");
  3. _yscale = "100" + "0.2" * (_Y - "200");
  4. wwrandom = random("25");
  5. if("400" < _X or wwrandom == "15")
  6. {
  7.    tellTarget("/w1")
  8.    {
  9.       gotoAndStop("wwL");
  10.       play();
  11.    }
  12.    tellTarget("/w2")
  13.    {
  14.       gotoAndStop("wwL");
  15.       play();
  16.    }
  17. }
  18. if(getProperty("/m1", _Y) >= _Y)
  19. {
  20.    setProperty("/w2", _visible, "0");
  21.    setProperty("/w1", _visible, "1");
  22. }
  23. if(getProperty("/m1", _Y) < _Y)
  24. {
  25.    setProperty("/w2", _visible, "1");
  26.    setProperty("/w1", _visible, "0");
  27. }
  28. setProperty("/w1", _X, getProperty("/w2", _X));
  29. if(getProperty("/m1", _X) + "20" >= _X and _X >= getProperty("/m1", _X) - "20" and getProperty("/m1", _Y) + "20" >= _Y and _Y >= getProperty("/m1", _Y) - "20" and getProperty("/m1/hit", _currentframe) == "1")
  30. {
  31.    tellTarget("/m1/hit")
  32.    {
  33.       play();
  34.    }
  35. }
  36.