# Help w/preloading ext swfs into background

**URL:** <https://forum.kirupa.com/t/help-w-preloading-ext-swfs-into-background/167338>\
**Category:** flash\
**Created:** [October 27, 2005, 11:53am UTC](https://forum.kirupa.com/t/help-w-preloading-ext-swfs-into-background/167338 "2005-10-27T11:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidkami](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@davidkami](https://forum.kirupa.com/u/davidkami)\
**Post date:** [October 27, 2005, 11:53am UTC](https://forum.kirupa.com/t/help-w-preloading-ext-swfs-into-background/167338/1 "2005-10-27T11:53:00Z")

</div>

Hi,

I’m hoping someone will help me. I have a slide presentation with audio tracks and I need to load the new slides in while the previous ones are playing to get rid of any preloaders during a change of slide. The project consists of one main navigation movie and 30 slide files all with extensive audio. The trace commands are just there because I had a hard time getting it to work.  
Here’s the code I came up with after searching the forums-i created a blank movie clip with an instance name of container and am loading additional empty clips into it-

**Code:**

```php
 
 
onClipEvent (load) {
i = 1;
r = 0;
}
onClipEvent (enterFrame) {
if (i < 31) {
	 _root.container.createEmptyMovieClip("container" + i, i);
	 clip = eval("container" + i);
	 if (r == 0) {
		 _root.container.clip.loadMovie("slide" + i + ".swf");
		 slide = "slide" + i + ".swf";
		 trace(slide);
if (_root.container.clip.getBytesLoaded()==_root.container.clip.getBytesTotal()) {
trace(_root.container.clip.getBytesLoaded());
	 trace(_root.container.clip.getBytesTotal());
r = 0;
i += 1;
_root.container.clip.unloadMovie();
} else {
r = 1;
 
		 }
	 }
}
}

```

I’m pretty sure the problem lies in the getBytesLoades\<getBytesTotal if then statement as the trace commands evaluate them both as 0-Can someone please help?

Thanks,  
Yvette
