Sending variables to Flash from php
| From: | Donovan Hutchinson | Date: | Wed, 03 Mar 2004 20:59:57 +0000 |
| Subject: | Sending variables to Flash from php | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-33274@lists.php.net to get a copy of this message | ||
Hi,
I'm working on a simple bit of flash that should display some text passed into it from PHP.
I'm using the FlashVars as following (trimmed for brevity):
<object ...
<PARAM NAME="FlashVars" VALUE="name=<?php echo
$firstname.'+'.$lastname; ?>">
<embed src="images/intro.swf" quality="high" FlashVars="name=<?php
echo $firstname.'+'.$lastname; ?>"...
..</object>
In flash, i've set up a dynamic text block called nametext, and added the following
actionscript to the frame:
nametext = name;
I'm sure that should be setting the variable, but I can't seem to get it to work. Any
suggestions appreciated :)
Donovan Hutchinson
------------------------------
Find UK Stores:
UKShopOnline.net
------------------------------