# Target a movieclip inside an external SWF

**URL:** <https://forum.kirupa.com/t/target-a-movieclip-inside-an-external-swf/320650>\
**Category:** flash\
**Created:** [March 29, 2011, 12:37pm UTC](https://forum.kirupa.com/t/target-a-movieclip-inside-an-external-swf/320650 "2011-03-29T12:37:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [March 29, 2011, 12:37pm UTC](https://forum.kirupa.com/t/target-a-movieclip-inside-an-external-swf/320650/1 "2011-03-29T12:37:01Z")

</div>

Hi,

I’ve a main movie with a container movieclip to load an external swf file. That’s working fine but I want to control the movieclips of externally loaded movie.

I tried the below method but not work out.

## **script on the main movie**

\_root.holder.loadMovie (“1.swf”, mytarget); // This is working fine

\_root.holder.mytarget.\<movieclipname of the externally loaded movie\>.onRelease= function ()  
{  
// Do something.  
}

But the above script not worked out :h: Any help would really appreciate.

thanks in advance
