|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing PHP vars to flash
Hello All,
I need to pass securely some PHP session variables to a Flash movie. Does anybody know how to achieve this ?? (PS. I don't want to insert any code in the object tag or any extra code in the url) thx |
|
#2
|
|||
|
|||
|
Use PHP's urlencode() function. For example.
<?php $myVariable = "this is some text to load into flash"; echo "myVar=" . urlencode($myVariable); ?> This will output something like: myVar=this+is+some+text+to+load+into+flash Then you load that php script into Flash using loadVariables or LoadVars if you have FlashMX. Then call the variable myVar in Flash. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Passing PHP vars to flash |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|