10 Replies Latest reply on Apr 26, 2006 8:12 AM by kglad

    controlling the time/loop of an if statement

    complexity Level 1
      Hey all

      I have a basic if statement that is looping, now no matter how many frames I put the script across in my timeline when it repeats itself it messes up the animation that it is telling to come on. (obvisouly telling it to go back to the start)

      Where should I put the if statement to avoid this conflict? My animation is 37frames long.

      This is my if statement
      if(_root.smlmenuvar == "1"){
      _root.main_mc.little_menu.grad1.gotoAndPlay(2);
      }
      else if(_root.smlmenuvar == "2"){
      _root.main_mc.little_menu.grad2.gotoAndPlay(2);
      }
      else if(_root.smlmenuvar == "3"){
      _root.main_mc.little_menu.grad3.gotoAndPlay(2);
      }


      Any help would be much appreciated,