gotoAndPlay

How do I use the gotoAndPlay code? I want it so when you release a button, it goes and plays this movie clip. The MC is called “airsoft”, and I want it to start playing from frame #2. Thanks fellas.

on yar _root (main) timeline:

myButton.onRelease = function(){
airsoft.gotoAndPlay(2);
}

well, change “myButton” into ur button instance name. :slight_smile:

yours,
h88

Thanks h88, you are very fast with your replies.

no problem! :slight_smile:

LOL, we ended this thread in 3 mins. :stuck_out_tongue: