Jump to content

Flash + PHP


otuatail

Recommended Posts

Is there a way to add a flash swf file into a php webpage. I have been told by several people that it can be done but have not been told how.

I have created a simple swf file, but looking at code on other websites is strange.

 

 

<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="248" height="141">
            <param name="movie" value="template/img/sub.swf">
            <param name="quality" value="high">
            <embed src="template/img/sub.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="248" height="141"></embed>
          </object></td>

 

What is clsid? I have created the simple swf file but I don't have any class ID

 

Desmond.

:confused:

Link to comment
https://forums.phpfreaks.com/topic/175505-flash-php/
Share on other sites

Not sure you need to put it in an object.  I just use the < embed> portion on my site, and it works fine.

 

<embed src="template/img/sub.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="547" height="248"></embed>

Link to comment
https://forums.phpfreaks.com/topic/175505-flash-php/#findComment-924773
Share on other sites

Ok thanks. This is what I have, but the swf file is missing a bottom border. Also can I fix the size of the swf. I am currently using Action script 3.0

<?php
ini_set ("display_errors", "1"); // At the top of the page for page errors.
error_reporting(E_ALL); // At the top of the page for page errors
?>
<html>
<body>
<embed src="flash/ExampleRunner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="547" height="248"></embed>
</body>
</html>

www.des-otoole.co.uk/myswf.php

 

Link to comment
https://forums.phpfreaks.com/topic/175505-flash-php/#findComment-924782
Share on other sites

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.