# Loading SWFs pauses code execution?

**URL:** <https://forum.kirupa.com/t/loading-swfs-pauses-code-execution/226909>\
**Category:** flash\
**Created:** [May 25, 2007, 12:17am UTC](https://forum.kirupa.com/t/loading-swfs-pauses-code-execution/226909 "2007-05-25T00:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozymandias](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ozymandias/32/1997_2.png) [@Ozymandias](https://forum.kirupa.com/u/Ozymandias)\
**Post date:** [May 25, 2007, 12:17am UTC](https://forum.kirupa.com/t/loading-swfs-pauses-code-execution/226909/1 "2007-05-25T00:17:12Z")

</div>

I’m having trouble with a movie I’m making. It’s a loader movie clip that loads 3 seperate SWFs. The problem I’m having is that if I do:

mainLoader.addListener(mainListener);  
mainLoader.loadClip(mainPath, main\_mc);  
menuLoader.addListener(menuListener);  
menuLoader.loadClip(menuPath, menu\_mc);  
reservationsLoader.addListener(reservationsListener);  
reservationsLoader.loadClip(reservationPath, reservations\_mc);

Then all 3 movies sorta half-load and stop tweening at random points depending on how fast each ones loads.

If I add listeners thusly:

mainLoader.addListener(mainListener);  
mainLoader.loadClip(mainPath, main\_mc);  
reservationsLoader.onLoadComplete = function() {  
menuLoader.addListener(menuListener);  
menuLoader.loadClip(menuPath, menu\_mc);  
reservations\_mc.test();  
}  
mainLoader.onLoadComplete = function() {  
reservationsLoader.addListener(reservationsListener);  
reservationsLoader.loadClip(reservationPath, reservations\_mc);  
}

It works better but the fade in is still interrupted in the reservations SWF.

Is there something flash does in relation to externally loaded SWFs that I don’t understand? It seems like loading an swf into a movieclip shouldn’t even affect anything else.
