# Loading external swf with a movie clip symbol

**URL:** <https://forum.kirupa.com/t/loading-external-swf-with-a-movie-clip-symbol/281808>\
**Category:** flash\
**Created:** [February 13, 2009, 11:44am UTC](https://forum.kirupa.com/t/loading-external-swf-with-a-movie-clip-symbol/281808 "2009-02-13T11:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![startrooper85](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@startrooper85](https://forum.kirupa.com/u/startrooper85)\
**Post date:** [February 13, 2009, 11:44am UTC](https://forum.kirupa.com/t/loading-external-swf-with-a-movie-clip-symbol/281808/1 "2009-02-13T11:44:54Z")

</div>

Hi! I’m pretty new on actionscript coding. Trying to call an external swf into stage with a movie clip symbol. How can i do this?

I’d like to merge these 2 codes:  
This one i use for a movie clip buttons effect:

```auto
stop(); 

this.onEnterFrame = function(){ 
if(rewind == true){ 
prevFrame(); 
} 
} 
  
this.onRollOver = function(){ 
rewind = false; 
play(); 
} 
  
this.onRollOut = function(){ 
rewind = true; 
}

```

Then mix this (following code only works for me in a button symbol) to the previous code and make them work together:

```auto
on (release) {
	if (_root.currMovie == undefined) {
		_root.currMovie = "section2";
		container.loadMovie("section2.swf");
	} else if (_root.currMovie != "section2") {
		if (container._currentframe >= container.midframe) {
			_root.currMovie = "section2";
			container.play();
		}
	}
}

```

thanks!😃
