Search code examples
flashbuttonmovieclipactionscript-2

Flash CS3: Controlling a Movieclip with a button in Flash Actionscript 2


I am trying to controll my movieclip with my buttons in Actionscript 2. I have a loop in my movieclip, it goes frame 1-20 over and over again. I want the button to move it to frame 21 and play it onwards from there. How do I do this?


Solution

  • buttoninstancename.onRelease = function()
    {
    movieclipinstancename.gotoAndPlay(21);
    }