home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / frog_day.swf / scripts / DefineSprite_377 / frame_39 / DoAction_2.as next >
Encoding:
Text File  |  2007-03-20  |  838 b   |  53 lines

  1. if(SpaceFrog == "1")
  2. {
  3.    if(eval("a" add Robo) == "3")
  4.    {
  5.       gotoAndStop(40);
  6.    }
  7.    else
  8.    {
  9.       gotoAndStop(30);
  10.    }
  11. }
  12. else if(Pyramid == "1")
  13. {
  14.    if(Key_ == "3")
  15.    {
  16.       gotoAndStop(40);
  17.    }
  18.    else
  19.    {
  20.       gotoAndStop(30);
  21.    }
  22. }
  23. else if(Key_ == "1" and eval("a" add Robo) == "3")
  24. {
  25.    gotoAndStop(40);
  26. }
  27. else
  28. {
  29.    gotoAndStop(30);
  30. }
  31. if(K == "0" and eval("a" add Robo) != "2")
  32. {
  33.    K = "1";
  34.    num = "1";
  35.    while("165" >= num)
  36.    {
  37.       if(eval("a" add num) == "2")
  38.       {
  39.          set("a" add num,"1");
  40.          set("CoverStart" add num,"1");
  41.          tellTarget("Box/" add num)
  42.          {
  43.             gotoAndStop("None");
  44.          }
  45.          tellTarget("BRICK/" add num)
  46.          {
  47.             gotoAndStop("Box");
  48.          }
  49.       }
  50.       num += "1";
  51.    }
  52. }
  53.