# Problem accessing variables in a loaded .swf

**URL:** <https://forum.kirupa.com/t/problem-accessing-variables-in-a-loaded-swf/96159>\
**Category:** Uncategorized\
**Created:** [December 5, 2003, 4:34pm UTC](https://forum.kirupa.com/t/problem-accessing-variables-in-a-loaded-swf/96159 "2003-12-05T16:34:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LilShieste](https://avatars.discourse-cdn.com/v4/letter/l/9f8e36/32.png) [@LilShieste](https://forum.kirupa.com/u/LilShieste)\
**Post date:** [December 5, 2003, 4:34pm UTC](https://forum.kirupa.com/t/problem-accessing-variables-in-a-loaded-swf/96159/1 "2003-12-05T16:34:35Z")

</div>

As the subject says: I am having a problem accessing variables in a loaded flash movie.

As my understanding goes (someone please correct me if I am wrong), if I load a flash movie into a parent movie (i.e. ‘loadMovie(“myMovie”, emptyClip);’), I should be able to access the loaded movie’s variables using dot-syntax.

As an example, say I have two movies: MainMovie.swf, and SubMovie.swf. SubMovie.swf contains a (global) variable called someText. After loading SubMovie into an empty movie clip called “emptyClip”, MainMovie.swf should be able to access the aforementioned variable by saying “emptyClip.someText”, right…? Well, when I try this I keep getting an undefined value for the variable.

I have attached the files containing this implementation. If anyone has any suggestions or idea, I would _greatly_ appreciate hearing them.

LilShieste
