Embedding Flash in Template

Permalink
I'm using the swfobject.js method, when I place the flash element into my template and look to load it hangs on the loading screen at 57%. When I run the flash in a straight html page it loads perfectly, so I'm not sure where my issue is at.

Here is my Head statement.

<head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   <?php  Loader::element('header_required'); ?>
   <link href="<?php echo $this->getThemePath()?>/c/style.css" type="text/css" rel="stylesheet" media="screen" />
   <script src="<?php echo $this->getThemePath()?>/js/swfobject.js" type="text/javascript" language="javascript"></script>
</head>


Then in my template I'm trying to load this in:

<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('includes/header.php'); ?>
   <div id="banner">
         <?php          
            $ah = new Area('banner');
            $ah->display($c);         
         ?>
   </div>
   </div>
   <!--###########################-->
   <!--      Content Layout      -->
   <!--###########################-->
      <div id="content">
         <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="920" height="500">


I've attempted to hardcode and it does the same issue for me. The directories for the flash are CHMOD to 755. Any ideas please?

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
instead of <script src="<?php echo $this->getThemePath()?>/js/swfobject.js" type="text/javascript" language="javascript"></script>

put this:

$this->addHeaderItem($html->javascript('swfobject.js'), 'CORE');
akufc replied on at Permalink Reply
Perfect thanks