470,848 Members | 1,784 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Can you add dynamic text from php to a flash button?

Any ideas? Im looking to give the flash button a name based upon the
variables in php.

Marc

Feb 25 '06 #1
3 2978

monomaniac21 wrote:
Any ideas? Im looking to give the flash button a name based upon the
variables in php.

Marc


<http://www.php.net/swf>

Feb 25 '06 #2
monomaniac21 wrote:
Any ideas? Im looking to give the flash button a name based upon the
variables in php.

Marc

Just print out the variable as FlashVars, then dynamically set the
label of the button with ActionScript. See this TechNote:
http://www.macromedia.com/cfusion/kn...fm?id=tn_16417

Feb 26 '06 #3
Marc:

<embed src="flash.swf?button=<?php echo urlencode($button) ?>">

and similar in the correct part of the Object tag.

This will create a var called 'button' in the root context of the Flash
movie.

Feb 27 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Steph | last post: by
1 post views Thread by Nathan Bloomfield | last post: by
11 posts views Thread by KaHuNa | last post: by
3 posts views Thread by NateDawg | last post: by
9 posts views Thread by pbd22 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.