# Loading external swf

**URL:** https://forum.kirupa.com/t/loading-external-swf/238595
**Category:** Uncategorized
**Created:** [September 12, 2007, 10:36pm UTC](https://forum.kirupa.com/t/loading-external-swf/238595 "2007-09-12T22:36:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neves](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/neves/32/3691_2.png) [@neves](https://forum.kirupa.com/u/neves)
#### Post date: [September 12, 2007, 10:36pm UTC](https://forum.kirupa.com/t/loading-external-swf/238595/1 "2007-09-12T22:36:47Z")

</div>

I´m using Loader class to load external swf, like was done in AS2 with MovieClipLoader.

The big problem is that the loaded swf start playing even before finish loading! Yes, that´s right, when the loading ends, your animation is at middle or end!

I try to load an as2 and as3 external swf, but the problem is the same.

I check the same with MovieClipLoader and loadMovie from AS2 and the same happens.

My question is, there´s any way to load an external swf, but only play when it´s finished?

The only solution I found was to put a stop at the first frame, on a scene before the movieClip start, because even with a stop on the first frame, if it has sub movieClips, they start playing too.

AS2: Here you can see that the animation already shows even it´s not fully loaded.  
[http://qi64.com/flash/LoaderAS2.swf](http://qi64.com/flash/LoaderAS2.swf)

AS3: The same, but I can´t addChild until it has enouth information.  
[http://qi64.com/flash/loader.swf](http://qi64.com/flash/loader.swf)

AS3: Here I´m using Event.INIT to addChild right when it´s ready to display, and I´m doing a stop() and just play() when it´s complete.  
But the bar at the bottom is a movieClip, that don´t respect my stop, as expected.  
[http://qi64.com/flash/loader2.swf](http://qi64.com/flash/loader2.swf)

Should be the solution, load the swf as a binary stream, and somehow add it and play? Could I still have loading progress?

here´s the source: [http://qi64.com/flash/loader.fla.zip](http://qi64.com/flash/loader.fla.zip)
