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
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
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
Share on other sites

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.