View Full Version : Button help
Ok, you know those stick movies where you choose what happans to the stick? What is the sript to make it play a certain frame and end on another, then go back to the button menu? I know this exists, i just can't get it to work, any help?
Note: It MUST go back to the button menu when finished doing frames
joecan
10-01-2006, 05:53 AM
well it not hard to do
ok first put code on ur button on (press) { gotoAndPlay (18);} that will play it now at the end of it put on the frame this code stop(); then make another button to go back to button menu eg on (press){ gotoAndStop (5) ;} and ur done i hope i helped
Logic
10-01-2006, 06:41 AM
two parts:
Make it go to a specific frame (put this in the main timeline):
my_btn.onRelease = function() {
stick_mc.gotoAndPlay(#);
}
Replace the # symbol in there with an actual frame in the stick_mc's timeline
Make it go to the title/menu(place in stick_mc's timeline AFTER animation finishes):
_parent.gotoAndStop(#);
Replace the # with the frame that is your menu/title. You also may need to change the second part depending on how you attached the movieclips.
vBulletin® v3.7.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.