3 Replies Latest reply on Apr 6, 2009 5:51 PM by Ned Murphy

    Need Actionscript help!!!!!

      umm hi im new in flash and i really need help.

      im trying to make a game wher if you have 100 points you win and if you have less you lose.

       

       

      this is the code for my frame:

      stop();
      score = 10

      my dynamvariable name is score

       

      this is the code for my button that increases the score:

      on(release){
          score-=1
      }

      this the button for going to the next frame:

      on(release){
          if(score = 10){
              gotoAndPlay(2);
          }else{
              gotoAndPlay(3);
          }
      }

      i really need help i dont know what is wrong. frame 2is the you win screen and frame 3 is the you lose screen whenever i press the next frame button it always says you win