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

  1. if(_Y + "26" < getProperty("/m1", _Y))
  2. {
  3.    _visible = "0";
  4. }
  5. if(getProperty("/m1", _Y) < _Y + "26")
  6. {
  7.    _visible = "1";
  8. }
  9. if(_X + "100" >= getProperty("/m1", _X) and getProperty("/m1", _X) >= _X - "100" and getProperty("/m1", _Y) >= _Y - "20" and _Y + "40" >= getProperty("/m1", _Y))
  10. {
  11.    if(getProperty("/m1", _currentframe) >= "9" and "12" >= getProperty("/m1", _currentframe))
  12.    {
  13.       setProperty("/m1", _X, getProperty("/m1", _X) - "22");
  14.       tellTarget("/m1")
  15.       {
  16.          gotoAndStop(1);
  17.       }
  18.    }
  19.    if("8" >= getProperty("/m1", _currentframe) and getProperty("/m1", _currentframe) >= "5")
  20.    {
  21.       setProperty("/m1", _X, getProperty("/m1", _X) + "22");
  22.       tellTarget("/m1")
  23.       {
  24.          gotoAndStop(1);
  25.       }
  26.    }
  27.    if(getProperty("/m1", _currentframe) >= "13" and "16" >= getProperty("/m1", _currentframe))
  28.    {
  29.       setProperty("/m1", _Y, getProperty("/m1", _Y) + "18");
  30.       setProperty("/m1", _X, getProperty("/m1", _X) + "2" * ((getProperty("/m1", _X) - "275") / "94"));
  31.       tellTarget("/m1")
  32.       {
  33.          gotoAndStop(1);
  34.       }
  35.    }
  36.    if(getProperty("/m1", _currentframe) >= "17" and "20" >= getProperty("/m1", _currentframe))
  37.    {
  38.       setProperty("/m1", _Y, getProperty("/m1", _Y) - "18");
  39.       setProperty("/m1", _X, getProperty("/m1", _X) + "2" * ((getProperty("/m1", _X) - "275") / "94"));
  40.       tellTarget("/m1")
  41.       {
  42.          gotoAndStop(1);
  43.       }
  44.    }
  45. }
  46.