# More on preloaders

**URL:** <https://forum.kirupa.com/t/more-on-preloaders/13992>\
**Category:** Uncategorized\
**Created:** [February 20, 2003, 5:32pm UTC](https://forum.kirupa.com/t/more-on-preloaders/13992 "2003-02-20T17:32:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niklasw](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@niklasw](https://forum.kirupa.com/u/niklasw)\
**Post date:** [February 20, 2003, 5:32pm UTC](https://forum.kirupa.com/t/more-on-preloaders/13992/1 "2003-02-20T17:32:00Z")

</div>

Okay guys and gals, can anyone answer this one for me??

Do I put the preloader for the external swfs in the swf’s themselves, or do I put them in my main movie???

I need help with this kinda fast…anyone??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 5:43pm UTC](https://forum.kirupa.com/t/more-on-preloaders/13992/2 "2003-02-20T17:43:05Z")

</div>

A preloader movie that loads your header, footer, and your contents, is the best way i guess.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 20, 2003, 6:16pm UTC](https://forum.kirupa.com/t/more-on-preloaders/13992/3 "2003-02-20T18:16:12Z")

</div>

something i had just done:

```php
_global.preload = function(swfFile, depth, x, y) {
	mcName = swfFile.substring(swfFile.lastIndexOf("."), 0);
	_root.createEmptyMovieClip(mcName, depth);
	_root[mcName]._visible = false;
	_root[mcName]._x = x;
	_root[mcName]._y = y;
	loadMovie(swfFile, _root[mcName]);
	_root[mcName].stop();
	checkProgress = function () {
		if (_root[mcName].getBytesLoaded() == _root[mcName].getBytesTotal()) {
			clearInterval(myInterval);
			_root[mcName]._visible = true;
			_root[mcName].play();
		}
	};
	myInterval = setInterval(checkProgress, 10);
};
/* Usage
preload("test.swf", 2, 200, 200);
preload("test1.swf", 3, 30, 20);
preload("test2.swf", 4, 150, 160);
 */

```
