Embedding SWF in PHP

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Pmaurer
Forum Newbie
Posts: 5
Joined: Sat Sep 20, 2008 10:59 pm

Embedding SWF in PHP

Post by Pmaurer »

This is javascript. Moved to Client Side by moderator.

I'm having trouble embedding my swf file into the top of my page. Here is the code I am using:

Code: Select all

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="http://chevelleonline.net/wb/media/AC_RunActiveContent.js" language="javascript"></script> 
 
</head>
<body>
<div align="center" id="container">
 
<script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '760',
            'height', '340',
            'src', 'CO Banner',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'window',
            'devicefont', 'false',
            'id', 'CO Banner',
            'bgcolor', '#000000',
            'name', 'CO Banner',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'CO Banner',
            'salign', ''
            ); //end AC code
    }
</script>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="760" height="340" id="CO_Banner" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="http://chevelleonline.net/wb/media/CO_Banner.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />    <embed src="http://chevelleonline.net/wb/media/CO_Banner.swf" quality="high" bgcolor="#000000" width="760" height="340" name="CO_Banner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>
Here is the site: http://chevelleonline.net/wb/

It's almost as if the browser knows where it should be...and defines an area where it is.....but it obviously doesn't show up!

thanks!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Embedding SWF in PHP

Post by requinix »

I don't see any PHP questions.

Line 16. Your source is wrong. It doesn't have the /media and it should have an underscore instead of a space.
Post Reply