Jump to content

Add a flash .swf file with PHP


gergy008

Recommended Posts

Hi, I'm trying to add a flash object using PHP.

 

I have this code up to now, But it won't work!

 

<?php echo('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="420" id="FlashID" title="pacman"><param name="movie" value="'.$build.'"><param name="quality" value="high"><param name="wmode" value="opaque"><param name="swfversion" value="6.0.65.0"><param name="expressinstall" value="../Scripts/expressInstall.swf"><param name="quality" value="high"><param name="wmode" value="opaque"><param name="swfversion" value="6.0.65.0"><param name="expressinstall" value="../Scripts/expressInstall.swf"><div><h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get AdobeFlash player" width="112" height="33" /></a></p></div></object></object><script type="text/javascript">swfobject.registerObject("FlashID");swfobject.registerObject("FlashID");</script>');
?>

 

As you can see, I'm trying to get pacman to appear. I have the location of the file as a string called $build. Do you know where I am going wrong?

Link to comment
https://forums.phpfreaks.com/topic/170531-add-a-flash-swf-file-with-php/
Share on other sites

You sure you have SWFobject? The code does not look invalid but I would not recommend using it if you run into problems like this. Use the above example with your .$build. variable inserted.. You can do paramaters the same as the rest, just don't mess with CLSID's.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.