Help with flash banner

edited July 2012 in News & Announcements
Hello,

I am trying to add a flash banner to my home page.

If I run the index.html file that Flash created for me I can see the banner.
In my home page the banner does not display.

I have a centenary.swf file in mysite/assets/swf

In the js folder, I've created home.js and pasted the js code that exists in the index.html that Flash created for me.

In the variables folder I've created home.php and the code:
$vars['js'] = array('jquery.nivo.slider.pack.js', 'sidemenu/jquery.cookie.js', 'sidemenu/jquery.dcjqaccordion.2.7.min.js', 'sidemenu/jquery.hoverIntent.minified.js', 'home.js');

In my home view file I've added this code:
<script language="JavaScript" type="text/javascript"> AC_FL_RunContent( 'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0', 'width', '225', 'height', '151', 'src', '<?=$this->asset->swf_path('centenary', NULL, TRUE);?>', 'quality', 'high', 'pluginspage', 'http://www.adobe.com/go/getflashplayer', 'align', 'middle', 'play', 'true', 'loop', 'true', 'scale', 'showall', 'wmode', 'window', 'devicefont', 'false', 'id', 'centenary', 'bgcolor', '#ffffff', 'name', 'centenary', 'menu', 'true', 'allowFullScreen', 'false', 'allowScriptAccess','sameDomain', 'movie', 'centenary', '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=10,0,0,0" width="225" height="151" id="centenary" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="centenary.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="<?= $this->asset->swf_path('centenary', NULL, TRUE);?>" quality="high" bgcolor="#ffffff" width="225" height="151" name="centenary" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /> </object> </noscript>
Why don't I see the banner on the home page?

Comments

  • edited 7:09PM
    What is the path that is being rendered?

    You will also need to make the change to this line too (for IE):
    <param name="movie" value="centenary.swf" />
  • edited 7:09PM
    Hi,

    The path that is being rendered: http://localhost/mysite/assets/swf/centenary.swf
  • edited 7:09PM
    Did you change it in the the following place as well?
    <param name="movie" value="centenary.swf" />
    Also, does it look like all the javascript you need to render the page is being properly pulled in?
  • edited 7:09PM
    Hi,

    Yes, I have changed this line, and home.js is pulled in properly.
  • edited 7:09PM
    If you browse to http://localhost/mysite/assets/swf/centenary.swf do you see the sef file?
  • edited 7:09PM
    Yes, I do
  • edited 7:09PM
    I don't think this is an issue specific to FUEL if you are able to view the SWF file.

    As an alternative, FUEL comes with a swf function you can try:

    http://getfuelcms.com/user_guide/libraries/asset#swf
Sign In or Register to comment.