# Accessing external variables works in IE, not in FF

**URL:** <https://forum.kirupa.com/t/accessing-external-variables-works-in-ie-not-in-ff/248362>\
**Category:** flash\
**Created:** [January 7, 2008, 3:03pm UTC](https://forum.kirupa.com/t/accessing-external-variables-works-in-ie-not-in-ff/248362 "2008-01-07T15:03:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [January 7, 2008, 3:03pm UTC](https://forum.kirupa.com/t/accessing-external-variables-works-in-ie-not-in-ff/248362/1 "2008-01-07T15:03:49Z")

</div>

Good Morning,

I have a swf file named main.swf and it is loading (using moviecliploader) the file book.swf . There are a bunch of variables and functions in book.swf that main.swf will access. So upon finish loading (onLoadInit) these variables are used.

I tested it locally on IE and works like a charm. However, when I tested it locally on Firefox, it does not work ! Meaning that, it does load the book.swf file, but none of the variables become accessible. When I upload both files temporarily onto a server and test it, it does not work neither on IE or FF.

I really made sure that the file was loaded first, and at the event of onLoadInit , the variables were accessed. But they just return undefined. I tried reading about the security allowDomain() function, but I dont think that’s the problem since both files reside under the same directory.

Any help please???
