I created a simple animation to put in a small div box on one my pages. I'm positive the problem is with all the automatic code but the movie does not play when I open the web page.
I uploaded the AC_RunActiveContent.js file and I uploaded the swf file and copied the code related to that and pasted it in the div box on the page i want to show. Below is all the code that was generated by flash that I copied out of the publish filed and transfered over.
<div class="port_item">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<!-- saved from url=(0013)about:internet -->
<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', '200',
'height', '200',
'src', 'flash-port',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'flash-port',
'bgcolor', '#750306',
'name', 'flash-port',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'flash-port',
'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="200" height="200" id="flash-port" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="flash-port.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#750306" /> <embed src="flash-port.swf" quality="high" bgcolor="#750306" width="200" height="200" name="flash-port" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
Flash
</div>
First by doing it this way did I do something wrong? Second is there a better way to do what I'm doing? I do know I need to change some paths to the folder I uploaded to, I thought I did that but still nothing plays when I load the page. Any help would be great.