# External SWFs scoping. Need help!

**URL:** <https://forum.kirupa.com/t/external-swfs-scoping-need-help/237990>\
**Category:** flash\
**Created:** [September 6, 2007, 3:43am UTC](https://forum.kirupa.com/t/external-swfs-scoping-need-help/237990 "2007-09-06T03:43:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinokunya](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kinokunya/32/3981_2.png) [@kinokunya](https://forum.kirupa.com/u/kinokunya)\
**Post date:** [September 6, 2007, 3:43am UTC](https://forum.kirupa.com/t/external-swfs-scoping-need-help/237990/1 "2007-09-06T03:43:08Z")

</div>

Hi all, basically i have **index.swf** & **content.swf**.

![](http://img530.imageshack.us/img530/5276/untitled1kw1.jpg)

_ **in content.swf** _  
to access launcher\_mc, you need \*\*bg\_mc.launcher\_mc

\*in index.swf  
\*\*\*I used a MovieClipLoader to load in content.swf (external swf), targeted at **[COLOR=Red]content\_mc[/COLOR]**  
because I need to use a preloader.

The problem is when loaded in using MovieClipLoader, I can’t access launcher\_mc.

**I’ve tried**

1. \_level0.**[COLOR=Red]content\_mc[/COLOR]**.bg\_mc.launcher\_mc but returns me undefined
2. Did a **[COLOR=Blue]trace[/COLOR]** for launcher\_mc.getDepth( ), then getInstanceByDepth( ) but returns undefined
3. reversed approach & went inside **content.swf** , played ard with [COLOR=Blue] **\_parent** [COLOR=Black]methods but still can’t get things going.

[/COLOR][/COLOR] I never did the one below, but is there any difference if I do this dynamically? e.g.[INDENT]\*this.createEmptyMovieClip(“my\_mc”, 1)  
\*my\_mc.loadMovie(“content.swf”)  
[/INDENT][COLOR=Blue][COLOR=Black] Any help & suggestions appreciated.  
Thanks.  
[/COLOR][/COLOR]
