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

Best practices for scene swapping

Status
Not open for further replies.

AtomicChip

Programmer
May 15, 2001
622
CA
I was wondering if anyone can shed some light on this. I'm looking at multiple ways of handling scene swapping and I'm wondering what you all do to handle this.

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
If I have multiple scenes (s1, s2), both to be loaded from a main scene, how would I transition from one to the other?

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
You mean 2 external movies (.swf)? You can't load a scene in another scene...
 
If you load the movies into the same level

var myMCL:Object = new MovieClipLoader();
myMCL.loadClip("movie1.swf", 10);

and eventually:

myMCL.loadClip("movie2.swf", 10);

one movie will unload the other.

(I was actually able to answer a question in here :)
 
Thanks for the answers, but apparently there is no way to tell when one clip is complete, and then load the other one :p

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
Maybe I'm not getting this. What are you trying to do:

load multiple movie clips (.swf) in different levels? or load multiple movie clips in the same level (this will remove the one loaded before)?

if the last one is the case, why would you need to load a second swf if the first one has not loaded yet?
 
Scene swapping and now movie clip loadings ???

Both of you should clear up what you mean!
 
Ok,

Sorry for the confusion...

I'm totally new to Flash (just started last weekend) and I'm primarily a C# developer. Guess I was expecting things to be a little more object oriented than they are.

Please disregard this post. I've found that the way that I was trying to get this done is the wrong way to do it in Flash :)

-----------------------------------------------
"The night sky over the planet Krikkit is the least interesting sight in the entire universe."
-Hitch Hiker's Guide To The Galaxy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top