# How to load an external SWF File on specified movieclip instead of stage?

**URL:** <https://forum.kirupa.com/t/how-to-load-an-external-swf-file-on-specified-movieclip-instead-of-stage/328050>\
**Category:** flash\
**Created:** [April 15, 2012, 5:27pm UTC](https://forum.kirupa.com/t/how-to-load-an-external-swf-file-on-specified-movieclip-instead-of-stage/328050 "2012-04-15T17:27:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![learner\_7n](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@learner\_7n](https://forum.kirupa.com/u/learner_7n)\
**Post date:** [April 15, 2012, 5:27pm UTC](https://forum.kirupa.com/t/how-to-load-an-external-swf-file-on-specified-movieclip-instead-of-stage/328050/1 "2012-04-15T17:27:28Z")

</div>

I want to load my external SWF file using the following code in “Panel4\_mc” instead of on stage. How can I do it"

function btnClick(event:MouseEvent):void {

removeChild(loader);  
var newSWFRequest:URLRequest = new URLRequest(“swfs/” + event.target.name + “.swf”);  
loader.load(newSWFRequest);  
addChild(loader);  
}

Thanks.
