home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2001 June / Otoday062001.iso / pc / progwin / happybag.exe / scripts / DefineSprite_119 / frame_2 / DoAction.as
Encoding:
Text File  |  2001-04-19  |  867 b   |  62 lines

  1. _X = _X + stepx;
  2. _Y = _Y + stepy;
  3. if("4.5" < stepx)
  4. {
  5.    stepx = "4.5";
  6. }
  7. if("6" < stepy)
  8. {
  9.    stepy = "6";
  10. }
  11. if(stepx < - "4.5")
  12. {
  13.    stepx = - "4.5";
  14. }
  15. if(stepy < - "6")
  16. {
  17.    stepy = - "6";
  18. }
  19. _rotation = stepx * "5";
  20. if(stepx < "0")
  21. {
  22. }
  23. if(_X < rand1)
  24. {
  25.    _X = rand1;
  26.    gotoAndStop(4);
  27. }
  28. if(rand2 < _X)
  29. {
  30.    _X = rand2;
  31.    gotoAndStop(4);
  32. }
  33. if(_Y < "10")
  34. {
  35.    _Y = "10";
  36.    stepy = "0";
  37. }
  38. if("380" < _Y)
  39. {
  40.    _Y = "380";
  41.    stepy = "0";
  42. }
  43. setProperty("rad/lenker", _rotation, stepx * "6");
  44. setProperty("rad/lenker", _xscale, "100");
  45. setProperty("rad/lenker", _yscale, "100");
  46. setProperty("rad", _xscale, "100");
  47. setProperty("rad", _yscale, "100");
  48. if(_X < "100")
  49. {
  50.    tellTarget("rad/lenker")
  51.    {
  52.       gotoAndStop("links");
  53.    }
  54. }
  55. else
  56. {
  57.    tellTarget("rad/lenker")
  58.    {
  59.       gotoAndStop(1);
  60.    }
  61. }
  62.