Wednesday, 29 April 2009

The new script

As i have now changed my animation I created a new script which simply lets me enter a certain movie clip and play from any frame at the click of a button.

T1.onPress= function(){
Back.gotoAndPlay(2);
}

T1: The Button
Back: The movie clip.

As you can see from this simple code that I am entering the movie clip named Back and playing from frame 2. So that the character does not loop I have stopped the end of the frames for each trick.

I have done this code 6 times and altered it for each button and movie clip.

No comments: