# Load more than 1 swf from a button

**URL:** https://forum.kirupa.com/t/load-more-than-1-swf-from-a-button/72393
**Category:** flash
**Created:** [December 5, 2004, 3:42pm UTC](https://forum.kirupa.com/t/load-more-than-1-swf-from-a-button/72393 "2004-12-05T15:42:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![a2a](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@a2a](https://forum.kirupa.com/u/a2a)
#### Post date: [December 5, 2004, 3:42pm UTC](https://forum.kirupa.com/t/load-more-than-1-swf-from-a-button/72393/1 "2004-12-05T15:42:39Z")

</div>

Hi,

Im a bit frustrated, in my way to understand how to load more than one swf with a single button click.

I have the following:

on(press,release){  
\_root.createEmptyMovieClip(“controlador”,999);  
\_root.controlador.destino = \_level1;  
\_root.controlador.onEnterFrame = function()  
{  
if (this.destino.getBytesLoaded() == this.destino.getBytesTotal())amp;amp;  
this.getBytesLoaded\>0;  
\_level1.\_y=94;  
delete this.onEnterFrame;}  
loadMovieNum(“ZMSlide-bis.swf”,1);  
}

The first swf on level 0 is 800x450 so I’ve created 2 swf’s to go on the next level which once loaded cover the same dimensions.  
Above code allows ZMSlide-bis.swf (800x356) to show at y=94 and of course now what I want to do is zurpaintop.swf (800x94) to load, in this case at x=0; y=0  
I hope you get my idea with this explanation.  
It took me already lots of time to reach to the above (I heard it can be done with MC’s but I guess that is at this time like maybe going too far, unless i got it RIGHT)  
I’ve tried different code variations to try to add two swf calls but…  
Here I am. No success yet. Please help!
