[SOLVED] Help with PHP for Flash Animations
Posted: Wed Oct 06, 2004 5:45 pm
Hello,
I want all the flash animations on my site to load onto one display page.
Example:
http://www.smartmindmedia.com/flash/pla ... height=300
If you follow the above link it will take you to the play.php page.
The flash "licenseplate" loads fine, except the width and heights aren't applied. It appears very small.
This is the code I use on the play.php page:
Thanks
John MacDougall
I want all the flash animations on my site to load onto one display page.
Example:
http://www.smartmindmedia.com/flash/pla ... height=300
If you follow the above link it will take you to the play.php page.
The flash "licenseplate" loads fine, except the width and heights aren't applied. It appears very small.
This is the code I use on the play.php page:
Code: Select all
<?
$id = $_GET['id'];
$width = $_GET['width'];
$height = $_GET['height'];
echo "<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>";
echo "<codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0>";
echo "<id=$id width=$width height=$height>";
echo "<param name=movie value=http://www.smartmindmedia.com/flash/files/$id.swf>";
echo "<param name=bgcolor value=#FFFFFF>";
echo "<param name=quality value=high>";
echo "<param name=allowscriptaccess value=samedomain>";
echo "</object>";
?>John MacDougall