# \[mx\]Making variables available in streamed movies

**URL:** <https://forum.kirupa.com/t/mx-making-variables-available-in-streamed-movies/102486>\
**Category:** Uncategorized\
**Created:** [February 24, 2004, 9:15am UTC](https://forum.kirupa.com/t/mx-making-variables-available-in-streamed-movies/102486 "2004-02-24T09:15:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jollup](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jollup](https://forum.kirupa.com/u/jollup)\
**Post date:** [February 24, 2004, 9:15am UTC](https://forum.kirupa.com/t/mx-making-variables-available-in-streamed-movies/102486/1 "2004-02-24T09:15:55Z")

</div>

Sorry for the vague title, but I couldn’t think of another way of putting this in a shortened format!!

Scenario:  
I am loading various movies into a "shell"movie as and when they are needed using loadMovie… No problems there.

However I have one movie which I am loading in to the shell “holder” movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into “0” the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.

I am guessing I need to load the variables into ‘this’ movie, but I have tried that by using the complete path…  
\_root.holder\_mc.loadVariablesNum(“scorevars.php”,“post”);

But this doens’t pick up the vars.  
My problem is I am not fully understanding the relationship between swf’s loaded into each other and how the timelines interact… Anyone shed some light on this?

Cheers

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 24, 2004, 9:27am UTC](https://forum.kirupa.com/t/mx-making-variables-available-in-streamed-movies/102486/2 "2004-02-24T09:27:20Z")

</div>

You’d be better off using loadVariables (to a movieclip) instead of to a level using loadVariablesNum:

```auto

this.loadVariables("scorevars.php",POST);

```

That would load the variables to this movieclip. That way, you don’t need to go messing with absolute paths. You can find more info on the loadVariables method [here](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary538.html).  
🙂
