Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.