Jump to content

Merge PHP and Flash


k@vosh
 Share

4 posts in this topic

Recommended Posts

hi.

i need merge php and flash for my project and need to learn but i search in net and can't find anything

can you help me?

i want create flash document.

my flash have more variable and i want allocate my vars in php and send that to flash.

i want a pdf about this title.

can you help me?

Thnx All

Link to comment
Share on other sites

set the variable up in php like

 

<?php $var = fuu ?>

 

then in the html flash embed code put

 

<param name="FlashVars" value="myVar=$var">

 

and in the object code put

 

<embed src="mySWF.swf" FlashVars="myVar=$var">

 

then in flash you get the variable thru myVar.

 

look up flashvars for some more help

Link to comment
Share on other sites

  • 2 months later...
set the variable up in php like

 

<?php $var = fuu ?>

 

then in the html flash embed code put

 

<param name="FlashVars" value="myVar=$var">

 

and in the object code put

 

<embed src="mySWF.swf" FlashVars="myVar=$var">

 

then in flash you get the variable thru myVar.

 

look up flashvars for some more help

 

Here's a quick tutorial: http://www.permadi.com/tutorial/flashVars/index.html

 

Also, in the <param> tag, the $var needs to be <?php echo $var ?> or equivalent.

Link to comment
Share on other sites

  • 4 weeks later...
 Share

×
×
  • Create New...