gergy008 Posted August 16, 2009 Share Posted August 16, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/170531-add-a-flash-swf-file-with-php/ Share on other sites More sharing options...
Zoroaster Posted August 16, 2009 Share Posted August 16, 2009 mate, just upload the .swf file and use this code: <object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="somefilename.swf" width="550" height="400"> </embed> </object> Quote Link to comment https://forums.phpfreaks.com/topic/170531-add-a-flash-swf-file-with-php/#findComment-899524 Share on other sites More sharing options...
oni-kun Posted August 16, 2009 Share Posted August 16, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/170531-add-a-flash-swf-file-with-php/#findComment-899560 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.