# Help with Movie Clip Button loading External SWF!

**URL:** <https://forum.kirupa.com/t/help-with-movie-clip-button-loading-external-swf/178573>\
**Category:** flash\
**Created:** [February 12, 2006, 2:46am UTC](https://forum.kirupa.com/t/help-with-movie-clip-button-loading-external-swf/178573 "2006-02-12T02:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jennings112](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@jennings112](https://forum.kirupa.com/u/jennings112)\
**Post date:** [February 12, 2006, 2:46am UTC](https://forum.kirupa.com/t/help-with-movie-clip-button-loading-external-swf/178573/1 "2006-02-12T02:46:13Z")

</div>

I Have made a movie clip button, But i am try’n to get it to load a external SWF into a MC. Now my AS is, (txt highlight in red is the area i am having a problem with!) It mean alot if some one could help me out!

stop();

this.onEnterFrame = function(){

if(rewind == true){

prevFrame();

}

}

this.onRollOver = function(){

rewind = false;  
play();

}

this.onRollOut = function(){

rewind = true;

}

[COLOR=Red]this.onRelease = function(){  
if (\_root.currMovie == undefined) {

\_root.currMovie = “temp3\_pageone”;  
container.loadMovie(“temp3\_pageone.swf”);  
} else if (\_root.currMovie != “temp3\_pageone”) {  
if (container.\_currentframe \>= container.midframe) {

\_root.currMovie = “temp3\_pageone”;  
container.play();

}  
}  
}  
[/COLOR]
