# Loaded .swf accessing FlashVars

**URL:** <https://forum.kirupa.com/t/loaded-swf-accessing-flashvars/271183>\
**Category:** Uncategorized\
**Created:** [September 19, 2008, 1:35pm UTC](https://forum.kirupa.com/t/loaded-swf-accessing-flashvars/271183 "2008-09-19T13:35:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhnh](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bhnh](https://forum.kirupa.com/u/bhnh)\
**Post date:** [September 19, 2008, 1:35pm UTC](https://forum.kirupa.com/t/loaded-swf-accessing-flashvars/271183/1 "2008-09-19T13:35:06Z")

</div>

OK, I’ve got an AS3 app we’ll call [COLOR=seagreen] **Game.swf** [/COLOR], which needs to access FlashVars from **[COLOR=royalblue]Game.html[/COLOR]**… easily done with

```auto
LoaderInfo(this.root.loaderInfo).parameters;

```

It turns out that [COLOR=seagreen] **Game.swf** [/COLOR] is heavy enough to require a preloader. The only effective way of doing that in AS3 is to load **[COLOR=#2e8b57]Game.swf[/COLOR]** into **[COLOR=darkorange]Preloader.swf[/COLOR]**, which is embedded in [COLOR=red] **Preloader.html** [/COLOR].

The question is, where do the FlashVars go (in [COLOR=red] **Preloader.html** [/COLOR]??), and how can [COLOR=seagreen] **Game.swf** [/COLOR] access those variables? Any suggestions on how to do this? Many thanks.
