Welcome Guest, Not a member yet? Register   Sign In
Problem in including flash file
#1

[eluser]oldrock[/eluser]
Hi..,

I have planned to redesign this website http://www.cricruns.com 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
#2

[eluser]mi6crazyheart[/eluser]
Without going through u'r code details no one can help u...
#3

[eluser]oldrock[/eluser]
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 {

AC_FL_RunContent(

'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',

'width', '900',

'height', '850',

'src', 'flash file7',

'quality', 'high',

'pluginspage', 'http://www.macromedia.com/go/getflashplayer',

'align', 'middle',

'play', 'true',

'loop', 'true',

'scale', 'showall',

'wmode', 'window',

'devicefont', 'false',

'id', 'flash file7',

'bgcolor', '#000000',

'name', 'flash file7',

'menu', 'true',

'allowFullScreen', 'true',

'allowScriptAccess','sameDomain',

'movie', 'flash file7',

'salign', ''

); //end AC code

}

[removed]

<noscript>

&lt;?php

echo "sdfs";

echo base_url();?&gt;

&lt;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="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="http://www.macromedia.com/go/getflashplayer" /&gt;

&lt;/object&gt;

</noscript>

</div>



thanks in advance
#4

[eluser]sqwk[/eluser]
Are your writing HTML or PHP?

Check out http://www.alistapart.com/articles/flashsatay for a guide on embedding flash correctly. (in HTML)
#5

[eluser]oldrock[/eluser]
whether i m need to load any libraries in codeigniter for including flash files
#6

[eluser]sqwk[/eluser]
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.)
#7

[eluser]Vheissu[/eluser]
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.




Theme © iAndrew 2016 - Forum software by © MyBB