16 Replies Latest reply on May 21, 2007 10:36 AM by kglad

    Button Controlling Movie Clip

    Grim38
      I have a button on the main timeline controlling an animation residing in a movie clip. I have a mask in the movie clip that opens to show an image when the button is in the rollOver state. I want the the mask to close on the rollOut state. If I make a tween with it opening and a tween with it closing, when the user rollsOut of the button prematurely it jumps to the last portion of the open animation. I want it to be fluid. I'm not sure how to do this with actionscript and I want all my code to be on the main timeline. Here is a sample of the code:

      tv_btn.onRollOver = function () {
      tv_mc.gotoAndPlay("open");
      }
      tv_btn.onRollOut = function () {
      tv_mc.gotoAndPlay("close");
      }