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!

Changing Scenes

Status
Not open for further replies.

soolan

Technical User
Mar 6, 2003
8
CA
Hi: Here is what I would like to have happen:

Scene 1 (no movieclip) calls Scene 2
Scene 2 (has a movieclip) then calls Scene 3 (also has a movieclip).

Here's what happening. I've managed to have:
Scene 1 on frame 30 load Scene 2 using actionscript
nextScene ();
-- ok that works.

Scene 2 and Scene 3 have movie clips in the 1st frame.

I can't seem to be able to have Scene 2 (when finished) call Scene 3

As you know if you don't put any actionscript then
frame 1 in Scene 2 / Scene 3 (movie clip) simply repeats itself over and over.

I've tried in <ie> movieclip_1 at frame 30 to use
nextScene ();
-- doesn't work and tried
Goto and Play Scene 3
-- that doesn't work either.

Hope I've explained this clearly and would appreciate some help.

TIA (thanks in advance) for your time.
 
You should probably have a stop action on the main timeline of Scenes 2 and 3.

So when the movie clip in Scene 2 is finished playing, you want it to jump to Scene 3?

If that is correct, did you try adding some actionscript to the last frame of the movie clip in Scene 2? Something like
Code:
_root.gotoAndPlay(&quot;Scene 3&quot;);
frozenpeas
 
Don't quite understand what you're saying here...

Here's what happening. I've managed to have:
Scene 1 on frame 30 load Scene 2 using actionscript
nextScene ();
-- ok that works.


You can't load a scene at the end of another one, unless what you have is a stop action on the last frame of scene 1, and that you're moving the main timeline to the next scene with your nextScene();

That would work on the main timeline, but won't from within movie clips. You can't target scene names from movie clips or movies loaded on other levels. You have to label the first frame of the targeted scene with an unique label such as start3 (no number only labels or at least not starting off with numbers!), add _root to your path and target that labeled frame:

_root.gotoAndStop(&quot;start3&quot;); Regards,

cubalibre2.gif
 
Thank you frozenpeas and oldnewbie for responding.

It's working - below is an outline:

Scene 1 has an actionscript on the main timeline (last frame):
NextScene();

Scene 2 has in frame 1 an actionscript on the main timeline:
Stop();
Movieclip_1 has an actionscript (last frame):
_root.GotoAndPlay(&quot;start3&quot;);

Scene 3 has in frame 1 a label:
start3
Actionscript in frame 1:
Stop
Movieclip_2 has an actionscript (last frame):
Stop();

I *really* appreciate your help in this. I'm sorry about the delay in my response back (I wasn't available).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top