Log in

View Full Version : Loading vars



dcool86
12-07-2008, 07:01 AM
Im trying to load vars threw flash basically the embed code "test.swf?id=1" . I want to load a php file inside

flash not sure if this is the right code to load in flash for the php file but somthing like this.

this.loadVariables("phpfile.php?id=000");

Where the 000 is I want the number 1 on the embed code for flash to transfer into the flash swf file then load the

phpfile it will look something like this ("phpfile.php?id=1"); the php file will not print anything on flash. Im

not sure how to put a var where 1 is. Im using in the php file the request fuction $id = $_REQUEST[id];

thanks

BLiZZaRD
12-07-2008, 03:29 PM
IF I understand you right (and I may not) this sounds like 2 different questions.

First you need to load the php file, but that will depend on how your php file is structured. Second you will need Flash Vars (http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417) to load a variable from a page into the swf.

And this is more Medyman's area rather than mine. But if he doesn't show up I am willing to try anything :) I've done it all before, just not always so pretty.

dcool86
12-07-2008, 09:53 PM
I want to load a php file in flash dosn't print anything on flash. Lets say i put the embed code on my site "test.swf?id=1&t1=test&t2=testing" when the flash swf file loads I want it to past the vars threw flash on to the php file like this phpfile.php?id=1&t1=test&t2=testing"); the php file i under stand just passing the vars threw flash I dont thanks.