1 Reply Latest reply on Apr 27, 2007 10:29 AM by TaylorTay619

    Easy If Statement Question

    TaylorTay619
      I am just trying to get this if statement to work. Basically what I want is when the button labeled t2 is pressed I want one of my other movie clips to go to the first frame and stop. Here is the code I have written. Any help would be greatly appreciated.

      t2.onPress = function() {
      torso.gotoAndStop(3,0);
      if (t2.onPress == true) {
      bottom.gotoAndStop(1,0);
      }
      }

      her is the code that is controlling the movie clip that I want to affect when I press t1

      b1.onPress = function() {
      bottom.gotoAndStop(2,0);
      }
      b2.onPress = function() {
      bottom.gotoAndStop(3,0);
      }
      b3.onPress = function() {
      bottom.gotoAndStop(4,0);
      }