|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Load variables and the such.
I was reading the flash articles here, they helped me alot. I have a question about sending variables from php to flash.
For sending something to flash from php i use something like this echo '_root.main.news =' . " <b>What I want to say</b>"; The thing i'm stuck on is sending multiple things to flash. echo '_root.main.news =' . " <b>What I want to say</b>"; echo '_root.main.otherthing =' . " <b>2nd thing I want to say</b>"; That doesnt seem to work. How would i set something like that up? I also have another question. It doesnt seem to work when i load variables from 2 different php files. For example: loadVariablesNum("vars.php?RND="+random(999999), 0); loadVariablesNum("othervars.php?RND="+random(999999), 0); But it does work with one php file. I'm forced store everything in one php file, which is ok, but I would rather have multiple files. Well, i think thats it. Hopefully you can help me out. -John |
|
#2
|
|||
|
|||
|
you need to make php print the values out like this
var1=value1&var2=value2&.... something like that, thats the only way flash can read the vars |
|
#3
|
|||
|
|||
|
So something similar to:
echo '_root.main.news =' . " <b>What I want to say</b>"&'_root.main.otherthing =' . " <b>2nd thing I want to say</b>"; right? |
|
#4
|
|||
|
|||
|
that should work
|
|
#5
|
|||
|
|||
|
Thanks Ben, I'll test it once my ftp program starts working again.
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Load variables and the such. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|