# Hi to everyone... preloader for external swf's?

**URL:** https://forum.kirupa.com/t/hi-to-everyone-preloader-for-external-swfs/148670
**Category:** Uncategorized
**Created:** [May 22, 2005, 8:36am UTC](https://forum.kirupa.com/t/hi-to-everyone-preloader-for-external-swfs/148670 "2005-05-22T08:36:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Fides](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@Fides](https://forum.kirupa.com/u/Fides)
#### Post date: [May 22, 2005, 8:36am UTC](https://forum.kirupa.com/t/hi-to-everyone-preloader-for-external-swfs/148670/1 "2005-05-22T08:36:26Z")

</div>

Hi guys…

… I’ve had my preloader successes already, but something still doesn’t work for the external movies…

![](http://www.were-over-there.com/board/html/emoticons/sad.gif)

I’m loading the main movie - which contains several chapters, loaded as external swf’s - with the following preloader on the first frame, rest content from second frame on:

```auto

  // preloader action

stop();

myInterval = setInterval(preloader, 10);

function preloader() {

	if (_root.getBytesLoaded()>=_root.getBytesTotal()) {

  gotoAndStop(2);

  //_root.lal_mc.gotoAndPlay(2);

  clearInterval(myInterval);

	}

	preloader_txt.text = Math.round(getBytesLoaded()/getBytesTotal()*100)+"% loaded";

} ;

```

works fine, as you can see [here.](http://www.weddings-in-style.ch)

Now I’m employing the same strategy for the external swf’s, loading them into a movieclip-holder, but it just doesn’t work… what am I doing wrong???

That’s the code I’m using to load:

```auto
 //contact: plays contact movie

_root.menu_mc.contact_btn.onRelease = function() {

	loadMovie("e_contact.swf", simpleviewer_mc);

};
 

```

Thanks for any help!  
Fides
