PDA

View Full Version : To CyanBleu (Loadvars from server to local).


u-lounge
04-21-2003, 08:09 PM
Hi,

First, my project works in local. It may the problem...

1/ I've created the php file the way CyanBlue said, except I replace the echo function that do not work on my server to
echo "var1=".$var1."&var2=".$var2."";
I test the php file with my navigator, no problem, it goes like :

var1=jo&var2=123

This is what we want...

2/ Cut and paste the actionscript for the swf file.
I replace, of course, the "load" line name with this line :

testLVs.load("http://www.u-lounge.net/cd_book/test2.php?uniqueID=" + getTimer());

3/ I test the movie in local,

the output window returns :
Data has been loaded successfully...
testLVs.var1 =
testLVs.var2 =

which means .onload success but no variable downloaded sorry get it yourself...
Thanks Flash MX....

So Did I do something wrong? or is it because my project works in local?

Note : Send works ok, sendAndLoad sends but no load...

Thanks for your help