Button Link to Scene

Advertisement
I'm trying to link buttons to the second, third, fourth, and
also the first scene of my project. How do I link the buttons in
each scene to the other scenes?
Advertisement

Replay

I'm assuming you know how to code buttons, so refer to the
Flash help file for MovieClip.gotoAndPlay() /
MovieClip.gotoAndStop() methods in the AS3 section for more info
than what follows if needed. What it boils down to is...
gotoAndPlay( [frame], [scene]);
where frame can either be a frame number or frame label, and
scene is a string (not a number)
gotoAndPlay(3, "Scene 2"); // using frame number
gotoAndStop("beginning", "Fourth Scene"); // using frame
label