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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to start play scene from movie located in another scene

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Please, help,

i need to solve this problem:

what action script i need to put on a button which is located in a movie called "mainmovie" (of scene 2) to play scene 1.

thank you.

therock
 
If I have this right, you're asking the age old question that most of us have been asking for the last 3 versions of Flash (and STILL the issue has not been addressed!) - why can't you use gotoAndPlay("scene1", 1) from inside a movieClip? Correct?

The answer is that scenes are like labels ... once you export your SWF, you no longer have any scenes, just one big timeline. If you target the main timeline from inside a movieClip with gotoAndPlay ("scene1", 1), the interpreter doesn't understand the term "scene1", and does any number of stupid and obviously wrong things instead.

SOLUTION: Put a label in the frame where you want your main timeline to go to, and on the button inside the movieClip, put this code:

on (release){
_root.gotoAndPlay("yourLabel");
}

That should get things moving.
 
Thank you so much, sure it works :)
(and okay i'm going to read old posts:)
 
Hey, don't worry about it ... I blame the software! Just as long as it works now ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top