Introduction

This component changes the framerate of a movieclip and reacts to buttons with a stop action. Put the component in frame 3 of the animation and the framename to start the animation in frame 2. Put a stop action in frame 1. Then click on the component and enter the new framerate and the number for the last frame. Put a stop action also in the last frame. To start the animation create a 3. button which has the action 'goToAndPlay("framename");'.

Parameters:

  • framerate: number of frames/second;
  • last Frame number: the number of the last frame in your movieclip;

Create scripts for two buttons like this:

button1.onRelease = function(){//start button
	_global.commandStop=true;
}
button2.onRelease = function(){
	_global.commandStop=false;//stop button
}