# Flash Vars not Loading

**URL:** <https://forum.kirupa.com/t/flash-vars-not-loading/271044>\
**Category:** flash\
**Created:** [September 17, 2008, 6:08pm UTC](https://forum.kirupa.com/t/flash-vars-not-loading/271044 "2008-09-17T18:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bencam](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@bencam](https://forum.kirupa.com/u/bencam)\
**Post date:** [September 17, 2008, 6:08pm UTC](https://forum.kirupa.com/t/flash-vars-not-loading/271044/1 "2008-09-17T18:08:13Z")

</div>

I am trying to access variables from an HTML wrapper which is playing my flash file. All other code seems to be working but this line is giving me a problem:

var loadedVars:Object = LoaderInfo(MyMovie.mainTimelineRef.loaderInfo).parameters;

where mainTimelineRef = MyMovie(this.root);

I obtained this structure from the Peter deHaan tutorial, and I am not an expert at actionscript by any means. If you need more information, let me know. I didn’t put in a lot of code here because it spans several files. If more information is needed I can provide it, but the above line seems to be where the problem arises.
