# Loading .swf in container

**URL:** https://forum.kirupa.com/t/loading-swf-in-container/150724
**Category:** Uncategorized
**Created:** [June 9, 2005, 7:51pm UTC](https://forum.kirupa.com/t/loading-swf-in-container/150724 "2005-06-09T19:51:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gallo](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@Gallo](https://forum.kirupa.com/u/Gallo)
#### Post date: [June 9, 2005, 7:51pm UTC](https://forum.kirupa.com/t/loading-swf-in-container/150724/1 "2005-06-09T19:51:16Z")

</div>

hey peep i need some help with this:

i have problems loading a photo gallery in a container. the thing is that the complex buttons are working fine but im trying to make em load a swf in the container mc

explanation: they are 3 complex buttons and on the buttons i have this code:

```auto
 
stop(); 
  
this.onEnterFrame = function(){ 
if(rewind == true){ 
prevFrame(); 
} 
} 
  
this.onRollOver = function(){ 
rewind = false; 
play(); 
} 
  
this.onRollOut = function(){ 
rewind = true; 
}
this.onRelease = function() {
		if (_root.currMovie == undefined) {
				_root.currMovie = "1";
				_root.container.loadMovie("1.swf");
		} else if (_root.currMovie != "1") {
						_root.container.play();
				}
};

```

but its not working…  
the loading movies doesnt have outro just intro thats why i dont use the middle frame thing.

please help me!!!

thnx!
