# Help loading sequence of swfs

**URL:** <https://forum.kirupa.com/t/help-loading-sequence-of-swfs/239038>\
**Category:** Uncategorized\
**Created:** [September 18, 2007, 9:12am UTC](https://forum.kirupa.com/t/help-loading-sequence-of-swfs/239038 "2007-09-18T09:12:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andylt1](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@andylt1](https://forum.kirupa.com/u/andylt1)\
**Post date:** [September 18, 2007, 9:12am UTC](https://forum.kirupa.com/t/help-loading-sequence-of-swfs/239038/1 "2007-09-18T09:12:06Z")

</div>

hello

ok i really need help on a project im working on.

ill give you a run down. i have created a rendered sequence and compressed it to flv (with camera animations and such). it is of a long curved corridor type building. now there are ten sections in the flv and in each there is a home, forward, left and right. ok i have alreadygot it working in one sence. i previously embedded the flv into a flash movie and setup the navigaion. but now the client doesent want loading times so i have to think of a way to load the content in sections and make them appear when neccasary.

hope that makes sense.

I have looked up some ways to do this and i believe the MovieclipLoader class may be the best way (although i may be wrong). but thats what ive been trying to get working. and cant. so i have broken up the flv into sections and made seperate swfs.

so basically im a bit stumped on how to structure my ‘main’ movie. all the scripts i have tried i cant seem to get working.  
this is what im thinking

main Timeline\>\>\>building\_mc\>\>\>\>\>Section01mc,Section02mc,Section03mc…and so on  
and within the building mc each section is in a frame and when you move to a frame it adds or plays the right section mc.

heres the code im using that seems to actually load some clips, on frame1 main timeline

var s01\_mc = this.createEmptyMovieClip(“myMc”, this.getNextHighestDepth());  
var s02\_mc = this.createEmptyMovieClip(“myMc”, this.getNextHighestDepth());  
var s03\_mc = this.createEmptyMovieClip(“myMc”, this.getNextHighestDepth());

var myLoader = new MovieClipLoader();  
var myListener = new Object();  
myListener.onLoadInit = function () {  
trace(“load init”);  
\_root.mall\_mc.gotoAndPlay (2)  
};  
myLoader.addListener(myListener);  
myLoader.loadClip(“s01.swf”, s01\_mc);  
myLoader.loadClip(“s02.swf”, s02\_mc);  
myLoader.loadClip(“s03.swf”, s03\_mc);  
stop();

now not only this but i need to play the movie after the first two clips have loaded and as thyre playng to keep loading the rest of the sections, 10 in all.

i have a few queries about the load moviecliploader. when you load multiple swfs does it matter if theyre all going to the same target mc? how do i play them when theyre loaded? do i attach them to a movie clip??

sorry if this is a bit long, and i know its difficult to get ur heads into my project, but i REALLY need some help on this.

cheers
