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

  1. if(getProperty("/m1", _X) + "150" >= _X and _X >= getProperty("/m1", _X) - "150" and getProperty("/m1", _Y) + "100" >= _Y and _Y >= getProperty("/m1", _Y) - "100")
  2. {
  3.    tellTarget("")
  4.    {
  5.       gotoAndStop("sk-rise");
  6.       play();
  7.    }
  8. }
  9. _xscale = "100" + "0.2" * (_Y - "200");
  10. _yscale = "100" + "0.2" * (_Y - "200");
  11. if(getProperty("/m1", _Y) >= _Y)
  12. {
  13.    setProperty("/sk2", _visible, "0");
  14.    setProperty("/sk1", _visible, "1");
  15. }
  16. if(getProperty("/m1", _Y) < _Y)
  17. {
  18.    setProperty("/sk2", _visible, "1");
  19.    setProperty("/sk1", _visible, "0");
  20. }
  21.