View Full Version : php------->flash
kmlzkma
05-09-2002, 05:11 PM
hi,i want to use a variables that come from count.php named $c in a textfiled,so i do like this:
loadVariablesNum("http://localhost/php/count.php", 0, "GET");
and named the textfiled c,if i do right??
thank u!£º£©
IFZen
05-14-2002, 09:51 AM
Yes you're right but don't forget that your PHP must return an output like this :
print ("c=$c");
Then it will correctly define your c variable into your Flash. Be also carefull to assume that the PHP result will be loaded where your dynamic text box is placed. To do so execute the loadVariable action at the same place.
IFZen
PS : if you don't need to pass any variable from Flash to your script, don't use any method (GET/POST). This will avoid any useless variable transmission in that direction.
also, make sure flash 'waits' for the php script to run and return your values before trying to use them in the text box... do a search for 'swonk' to find out more.
kmlzkma
06-03-2002, 10:21 AM
thanks,:D :D :D :D
i will make it!!
kmlzkma
06-03-2002, 04:44 PM
i success!!
but,there is another problem:
i want to use flash as a counter,
but ,as i write in php:
print("c=$c");
in my page,there echo two counter:
one is from flash,another is from php;
how can i only echo the flash one???
ps:
use php write to .txt and use flash read it --------this is slow,is there another way???
thanks!!!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.