Thursday, December 24, 2009

I want to make a movie with my Flash CS4 start when a button is clicked. What is the actionscript code??

put a stop(); command in the same frame number where the button resides. This prevents the movie from playing all by itself.





Then try this snippet for your button:





myBtn.onRelease = function() {


gotoAndPlay(2);//where 2 is the start frame number to play


};

No comments:

Post a Comment