# Accessing a movieclip of dynamically loaded swf file

**URL:** <https://forum.kirupa.com/t/accessing-a-movieclip-of-dynamically-loaded-swf-file/288485>\
**Category:** Uncategorized\
**Created:** [May 16, 2009, 5:13pm UTC](https://forum.kirupa.com/t/accessing-a-movieclip-of-dynamically-loaded-swf-file/288485 "2009-05-16T17:13:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikonik](https://avatars.discourse-cdn.com/v4/letter/i/35a633/32.png) [@ikonik](https://forum.kirupa.com/u/ikonik)\
**Post date:** [May 16, 2009, 5:13pm UTC](https://forum.kirupa.com/t/accessing-a-movieclip-of-dynamically-loaded-swf-file/288485/1 "2009-05-16T17:13:25Z")

</div>

in (swfA.fla) I have this code in frame1

var module1:Loader = new Loader();  
var admin = new MovieClip();  
addChild(admin);  
admin.addChild(module1);  
var moduleURL:URLRequest = new URLRequest(“swfB.swf”);  
module1.load(moduleURL);

* * *

in (swfB.fla) I have this code in frame 1

box.visible=false; (and a movieclip instance on the stage, called box)

My question is how do I get swfA to access swfB and set box.visible=true;

this: (in swfA)

admin.box.visible=true;  
(my thought here is that ‘admin’ contains swfB.swf?) - this would seem very simple… but it…

…does not work and gives me this [seriously unhelpful] error:

TypeError: Error #1010: A term is undefined and has no properties.  
at swfA\_fla::MainTimeline/frame1()

Any help out there would be awesome!  
Ikonik
