Problem in including flash file


I have planned to redesign this website using Codeigniter.
I have done all other page designs but i cannot include the flash file which is shown on the home page of this site , in new design using code igniter plz anybody help me to solve this issue.

thanks in advance

Without going through u'r code details no one can help u...

If i copy the code of embed source and paste it in the browser my flash file is getting displayed over there, but if i include it in my page as shown below its not getting included, i cant diagonise that where i m going wrong.

This is my view file Code.. Where my flash file gets included.

<div id="content-area">

<div id="flash">
AC_FL_RunContent = 0;

if (AC_FL_RunContent == 0) {

alert("This page requires AC_RunActiveContent.js.");

} else {


'codebase', ',0,0,0',

'width', '900',

'height', '850',

'src', 'flash file7',

'quality', 'high',

'pluginspage', '',

'align', 'middle',

'play', 'true',

'loop', 'true',

'scale', 'showall',

'wmode', 'window',

'devicefont', 'false',

'id', 'flash file7',

'bgcolor', '#000000',

'name', 'flash file7',

'menu', 'true',

'allowFullScreen', 'true',


'movie', 'flash file7',

'salign', ''

); //end AC code





echo "sdfs";

echo base_url();?&gt;

&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="900" height="850" id="flash file7" align="middle"&gt;

<param name="allowScriptAccess" value="sameDomain" />

<param name="allowFullScreen" value="true" />

<param name="movie" value="flash file7.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />

&lt;embed src="&lt;?php echo base_url().'system/application/views/flash.swf';?&gt;" quality="high" bgcolor="#000000" width="900" height="850" name="flash file7" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="" /&gt;




thanks in advance

Are your writing HTML or PHP?

Check out for a guide on embedding flash correctly. (in HTML)

whether i m need to load any libraries in codeigniter for including flash files

No, including a flash (.swf) file is pure HTML. It has nothing to do with codeigniter or even php, unless you are loading the location of these files from the database.)

I think the issue lies in this line, "&lt;embed src=”&lt;?php echo base_url().‘system/application/views/flash.swf’;?&gt;”" I think if you do the following it might work, "&lt;?php echo base_url().‘views/flash.swf" I don't think you need to add in that system/views part.

I would however recommend that you don't put flash files inside of your views folder, bad practice in my opinion. In your application folder create an assets folder and within that create a JS, CSS, Flash and images folder for your content.

Then in the head of your views where the title tags are and your HTML declaration is, add this underneath the title &lt;base href="&lt;?php echo base_url(); ?&gt;" /> then in your views you can simply go <img src="assets/images/image.jpg" /> as base href will automatically append your base_url to links without www or http declared before them.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.