# Access Movie Clip from Loaded SWF

**URL:** <https://forum.kirupa.com/t/access-movie-clip-from-loaded-swf/316388>\
**Category:** flash\
**Created:** [November 20, 2010, 3:02am UTC](https://forum.kirupa.com/t/access-movie-clip-from-loaded-swf/316388 "2010-11-20T03:02:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero\_cool1910](https://avatars.discourse-cdn.com/v4/letter/z/8baadc/32.png) [@zero\_cool1910](https://forum.kirupa.com/u/zero_cool1910)\
**Post date:** [November 20, 2010, 3:02am UTC](https://forum.kirupa.com/t/access-movie-clip-from-loaded-swf/316388/1 "2010-11-20T03:02:36Z")

</div>

Hello!  
I have 2 .swf  
main.swf  
application.swf

main.swf loads (using Loader Class of course) application.swf  
So, i need to do 2 things into main.swf BUT from application.swf  
I have in main.swf

- BlackBgMC (MovieClip), with a Shape Tween, in Stop on Frame 1
- A Close Buttom that i put invisible in Frame 1  
So, FROM … application.swf in a some point (example Frame 10) i need to get Play the BlackBgMC (that is on main.swf), and the Close Buttom put it Visible.

From application.swf i put:  
MovieClip(root).BlackBgMC.gotoAndPlay(2)  
or  
MovieClip(parent).BlackBgMC.gotoAndPlay(2)

And I always get  
“TypeError: Error #1010: A term is undefined and has no properties.”

How do i gotoAndPlay that MC from application.swf  
Sames happen with MovieClip(root).CloseButton.visible = true;

Please help me!
