|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
passing variables into php and back from flash 5
Hi guys, whatever... can someone please help me. I am trying to retrieve a counter value from PHP and trying to display it in flash 5. Also a some later stage, I will need to reset the counter, so I will need to send a value to a PHP script. I would appreciate a small code as example, or if someone could point me in the right direction.
thanks BOB.G |
|
#2
|
|||
|
|||
|
RE: passing variables into php and back from flash 5
I think if you use actionscript's loadVariableNum() to pull the counter variable into the Flash movie as a dynamic text variable, it will. Have the URL point to the page holding the PHP variable and make sure that it has no extra characters, returns, new lines, quotation marks, etc. And pass only one value from the page to the Flash movie (ie $count=44).
hth |
|
#3
|
|||
|
|||
|
RE: passing variables into php and back from flash 5
you need to create a file called count.php? it dat, create a variable
lets say something like this count=123234 ok, of course you can make that number dymamic, it doesnt matter as long as when it comes out its in that format then using loadVariableNum(count.php, "0") Load it with a button or something make sure you have a dynamic field called count, and when the variable is loaded it should work! |
|
#4
|
|||
|
|||
|
RE: passing variables into php and back from flash 5
or take this nice tutorial at phpbuilder. it helped me alot!
http://www.phpbuilder.com/columns/hill20011214.php3 |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > passing variables into php and back from flash 5 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|