Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Movie Clip button 1

Status
Not open for further replies.

tallgiant

Technical User
Aug 4, 2004
10
US
How do you link a button in a movie clip to a scene outside of the clip? I can make the clip link to itself just fine, but when I give a button with the movie clip the action:

on (press) {
gotoAndPlay("SCP", "cp");
}

it does not go to the scene and label. Am I missing another line of script?

 
Depending on how your movie is set up you'll probably need to include a path like this to your clip and also, since scenes are really just something to make authoring a little easier and don't actually get read as you'd expect by the Flash player, it's easier just to include the frame label that you want to get to:

Code:
on (press) {
   _root.gotoAndPlay("cp");
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top