Re: Sending variables to Flash from php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 08:59 PM 3/3/2004 +0000, Donovan Hutchinson wrote:
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

Donovan,


Have you tried refreshing the page with a Ctrl+R?

Flash can be so dumb some times; try calling both the dynamic text block and the var "nametext". You many have to declare the var in the first frame as a global.

Does it work if you use a literal value, i.e. try without the PHP echo, just use "Donovan Hutchinson".

What does the page's source look like?

Nothing definitive here, I'm afraid, and maybe you've done all that.

Good luck - Miles

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux