home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / snack-attack.swf / scripts / DefineSprite_362 / frame_4 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  622 b   |  44 lines

  1. stop();
  2. i = "1";
  3. while(i < "7")
  4. {
  5.    set("Type" add i,eval("Type" add i) - eval("/:onTray" add i));
  6.    if(eval("Type" add i) < "1")
  7.    {
  8.       set("Type" add i,"0");
  9.       tellTarget("line" add i)
  10.       {
  11.          gotoAndStop(2);
  12.       }
  13.    }
  14.    i += "1";
  15. }
  16. i = "1";
  17. while(i < "7")
  18. {
  19.    set("/:onTray" add i,"0");
  20.    i += "1";
  21. }
  22. if(alt == "1")
  23. {
  24.    tellTarget("line6")
  25.    {
  26.       gotoAndStop(1);
  27.    }
  28. }
  29. else
  30. {
  31.    tellTarget("line5")
  32.    {
  33.       gotoAndStop(1);
  34.    }
  35. }
  36. if(type1 + type2 + type3 + type4 + type5 + type6 == "0")
  37. {
  38.    set("/:won","1");
  39. }
  40. else
  41. {
  42.    set("/:won","0");
  43. }
  44.