We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8595
    • 1 Posts
    Hi,

    I’ve been trying to include a flash .swf file to use as my header, I’m including the javascript file that flash makes when you publish the movie, and then in my header div, I’ve included:

    <div id="header">
    
      <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', '800',
    			'height', '200',
    			'src', 'eicheader',
    			'quality', 'high',
    			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    			'align', 'middle',
    			'play', 'true',
    			'loop', 'true',
    			'scale', 'showall',
    			'wmode', 'window',
    			'devicefont', 'false',
    			'id', 'eicheader',
    			'bgcolor', '#ffffff',
    			'name', 'eicheader',
    			'menu', 'true',
    			'allowFullScreen', 'false',
    			'allowScriptAccess','sameDomain',
    			'movie', 'eicheader',
    			'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="800" height="200" id="eicheader" align="middle">
    	<param name="allowScriptAccess" value="sameDomain" />
    	<param name="allowFullScreen" value="false" />
    	<param name="movie" value="eicheader.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="assets/flash/eicheader.swf" quality="high" bgcolor="#ffffff" width="800" height="200" name="eicheader" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    	</object>
    </noscript>
    
        </div>
    


    I’ve placed my flash file in assets/flash/ and I was trying to get to that location by <embed src="assets/flash/eicheader.swf" ... but its not finding the flash file and firebug is showing the embed src just to be "eicheader.swf"

    What am I doing wrong???

    Thanks!
      • 4310
      • 2,310 Posts
      Do you have <base href="[(site_url)]"></base> tag in the <head> section of your site template?