home *** CD-ROM | disk | FTP | other *** search
/ Dye Another Day / DyeAnotherDay.bin / swf / help.swf / scripts / DefineSprite_165 / frame_2 / DoAction.as
Encoding:
Text File  |  2003-03-28  |  958 b   |  69 lines

  1. if(_root.part == 8)
  2. {
  3.    _root.stepnum = 5;
  4. }
  5. if(_root.part == 9)
  6. {
  7.    _root.stepnum = 6;
  8. }
  9. if(_root.part == 10)
  10. {
  11.    _root.stepnum = 4;
  12. }
  13. if(_root.part == 11)
  14. {
  15.    _root.stepnum = 3;
  16. }
  17. if(_root.part == 12)
  18. {
  19.    _root.stepnum = 3;
  20. }
  21. if(_root.part == 13)
  22. {
  23.    _root.stepnum = 3;
  24. }
  25. if(_root.part == 14)
  26. {
  27.    _root.stepnum = 1;
  28. }
  29. if(_root.part == 15)
  30. {
  31.    _root.stepnum = 4;
  32. }
  33. if(_root.part == 16)
  34. {
  35.    _root.stepnum = 2;
  36. }
  37. if(_root.part == 17)
  38. {
  39.    _root.stepnum = 5;
  40. }
  41. j = _root.stepnum;
  42. with(eval("_root.allbuttons.step" + j))
  43. {
  44.    gotoAndStop(1);
  45. }
  46. i = _root.stepnum + 1;
  47. while(i < 10)
  48. {
  49.    with(eval("_root.allbuttons.step" + i))
  50.    {
  51.       gotoAndStop(3);
  52.       i++;
  53.    }
  54. }
  55. i = _root.stepnum;
  56. while(0 < i)
  57. {
  58.    with(eval("_root.allbuttons.step" + i))
  59.    {
  60.       gotoAndStop(1);
  61.       i--;
  62.    }
  63. }
  64. with(eval("_root.allbuttons.step" + _root.newstep))
  65. {
  66.    gotoAndStop(2);
  67. }
  68. gotoAndStop(1);
  69.