# Loading movie into target from complex buttons

**URL:** <https://forum.kirupa.com/t/loading-movie-into-target-from-complex-buttons/149283>\
**Category:** Uncategorized\
**Created:** [May 27, 2005, 2:46pm UTC](https://forum.kirupa.com/t/loading-movie-into-target-from-complex-buttons/149283 "2005-05-27T14:46:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![InnellaDesign](https://avatars.discourse-cdn.com/v4/letter/i/0ea827/32.png) [@InnellaDesign](https://forum.kirupa.com/u/InnellaDesign)\
**Post date:** [May 27, 2005, 2:46pm UTC](https://forum.kirupa.com/t/loading-movie-into-target-from-complex-buttons/149283/1 "2005-05-27T14:46:45Z")

</div>

I used the code below to create an animated button. Now what I want to do is to load an external swf into a container when the user clicks the button. What code should I add (if possible) to allow the MC to do this??

And can i just create a container movie like normal? or do i have to put anything special on it?

stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};  
this.onRollOver = function() {  
rewind = false;  
play();  
};  
this.onRollOut = function() {  
rewind = true;  
};  
//i think i get rid of this? (below)  
this.onRelease = function() {  
\_root.gotoAndStop(“port1”);  
};

Any help would be appreciated! Thanks.
