# Access movieclip inside external swf

**URL:** <https://forum.kirupa.com/t/access-movieclip-inside-external-swf/322465>\
**Category:** flash\
**Created:** [May 22, 2011, 8:16am UTC](https://forum.kirupa.com/t/access-movieclip-inside-external-swf/322465 "2011-05-22T08:16:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikaelf](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mikaelf](https://forum.kirupa.com/u/mikaelf)\
**Post date:** [May 22, 2011, 8:16am UTC](https://forum.kirupa.com/t/access-movieclip-inside-external-swf/322465/1 "2011-05-22T08:16:17Z")

</div>

Hi all,

I am loading an external swf into my main swf. From my main swf I am trying to access a movieclip inside the external swf.

My code:

```auto

trace(contentLoader.getChildByName("mask_mc").y);
trace(contentLoader.getChildByName(event.target.mask_mc.name).x); 

```

(contentLoader is my loader, the mc iam trying to access is mask\_mc)

Would very much appreciate if anyone could help me in the right direction.

thanx
