# Accessing variables in a external swf

**URL:** <https://forum.kirupa.com/t/accessing-variables-in-a-external-swf/246458>\
**Category:** Uncategorized\
**Created:** [December 11, 2007, 11:11am UTC](https://forum.kirupa.com/t/accessing-variables-in-a-external-swf/246458 "2007-12-11T11:11:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [December 11, 2007, 11:11am UTC](https://forum.kirupa.com/t/accessing-variables-in-a-external-swf/246458/1 "2007-12-11T11:11:14Z")

</div>

hello everyone,

i am facing a problem in accesing the movieclips/function/contents of a extenal swf.

I used movieclip loader to load the swf.

* * *

i have two files… preview.swf and main.swf

preview.swf loads an xml and renders its content. the xmlpath is embedded in preview.swf.  
when i play the file directly, it seems to load the content.  
however when i load preview.swf into main.swf with a moviecliploader, it does not load or render the xml.

i cant even access the functions / variables in the file preview.swf

can some one help me…
