# Loading PHP Data From Child swf

**URL:** <https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283>\
**Category:** flash\
**Created:** [July 11, 2003, 2:38am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283 "2003-07-11T02:38:09Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [July 11, 2003, 2:38am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/1 "2003-07-11T02:38:09Z")

</div>

When I load my movie into my index.swf it doesn’t load my php data. When I run the movie alone, everything works fine. What am I missing? Is it possible to load the data from the index? Or am I just doing something wrong in the external swf

As for external movie  
[AS]  
loadVariablesNum(“[http://www.digitalosophy.com/a/visitors.php",0,"get](http://www.digitalosophy.com/a/visitors.php%22,0,%22get)”);  
[/AS]

Thanks

---

<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:** [July 11, 2003, 5:05am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/2 "2003-07-11T05:05:07Z")

</div>

because when you use loadVariablesNum you are loading to levels. If you load to level 0 its not on the same level as your SWF. Try changing it to 1, if that doesnt’ work then try 2, etc etc etc…

---

<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:** [July 11, 2003, 5:13am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/3 "2003-07-11T05:13:43Z")

</div>

or simply don’t load the variables in level but rather in a targetMC 🙂

---

<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:** [July 11, 2003, 5:15am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/4 "2003-07-11T05:15:44Z")

</div>

yeah that would be better still 😛

---

<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:** [July 11, 2003, 7:27am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/5 "2003-07-11T07:27:26Z")

</div>

loadVariables(“[http://www.digitalosophy.com/a/visitors.php",this,"GET](http://www.digitalosophy.com/a/visitors.php%22,this,%22GET)”);

---

<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:** [July 11, 2003, 3:10pm UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/6 "2003-07-11T15:10:11Z")

</div>

Thank you all, I can’t try this until I get home, but what you guys said makes perfect sense.

Thanks Again

---

<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:** [July 15, 2003, 12:36am UTC](https://forum.kirupa.com/t/loading-php-data-from-child-swf/25283/7 "2003-07-15T00:36:04Z")

</div>

eyez for some reason your solution did not work. by make the level 1, it did.

thanks all for the help, however i have moved on to a new problem. i want to have an mc saying loading, to preload the data. now i have followed claudio’s tutorials and other on loading textfiles. however since this is not a textfile, i ran into problems, and dont know where to go next. any ideas, links, tutes?

thanks again guys
