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

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


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 (
To unsubscribe, visit:

Reply via email to