Help - Search - Members - Calendar
Full Version: Merge PHP and Flash
InsanelyMac Forum > Everything Else > Creativity > Web and Graphical Design
k@vosh
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
adrock42
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
wingrunr21
QUOTE (adrock42 @ Sep 4 2008, 03:52 PM) *
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.
melanholly
http://gotoandlearn.com/play?id=90 i think that this will help you most biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.