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

Navigating between scenes

Status
Not open for further replies.

wilcdr

Programmer
Jan 4, 2001
19
CA
Hi all,

I am developing this Flash file that has multiple scenes (most of the scenes are quite long), and I have a "home page" that has buttons to go to each of the different scenes.

Now, assume Scene 1 is the home page, and Scene 2, etc are the other scenes. When I load up the home page, I have a stop action on the first frame with the button in the frame, but when I try to go to another scene, by using a script like:

on (release) {

gotoAndPlay("Scene 6", 1);

}

it will go to the second scene (or whatever scene is loaded up to this point) instead! It seems that if the scene to go to is not preloaded yet, it will just go to the last scene that is loaded. Is there a way to prevent this from happening? Like stop the preloading of whatever scene it is doing, and then go to Scene 6 (or whatever scene is specified in the script) instead?

Thanks!

Willy
 
You can't stop scenes 3,4,5 from loading before 6.

Either:

>>>turn scene 6 into scene 2 (I know this won't help you)

or

>>>Set your preloader to wait until scene 6 is loaded before presenting the user with any options.

dD

(an afterthought: why not try loading the scenes as separate SWF's instead, see if it makes a difference) davdesign@hotmail.com

^^^^^^^^^^^^^^^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top