Welcome Guest, Not a member yet? Register   Sign In
Can't get flash to show up in view
#1

[eluser]rvillalon[/eluser]
Hi everyone,

Is there some sort of additional configurations I need to make to make my flash show up on codeigniter? My flash works perfectly fine when I don't have it loaded up on codeigniter. In codeigniter, the flash is just blank. Any ideas?
#2

[eluser]Dam1an[/eluser]
Could be a path issue, htaccess issue perhaps... We'd need to see some code to give any advice which would be even potentially useful though
#3

[eluser]rvillalon[/eluser]
I have a very basic setup:

my view page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;link href="&lt;?=base_url()?&gt;/css/default.css" rel="stylesheet" type="text/css" /&gt;
&lt;link href="&lt;?=base_url()?&gt;/css/thickbox.css" rel="stylesheet" type="text/css" /&gt;

[removed][removed]
[removed][removed]
[removed]
$(document).ready(function(){

$('#example').each(function(){
var url = $(this).attr('href') + '?TB_iframe=true&height=549&width=884&modal=true';

$(this).attr('href', url);
});

});
[removed]
[removed]AC_FL_RunContent = 0;[removed]
[removed][removed]
&lt;title&gt;Test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
[removed]
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', '590',
'height', '440',
'src', 'file',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'file',
'bgcolor', '#000000',
'name', 'file',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'file',
'salign', ''
); //end AC code
}
[removed]
<noscript>
&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="590" height="440" id="file" align="middle"&gt;
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="&lt;?=base_url()?&gt;player/file.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> &lt;embed src="&lt;?=base_url()?&gt;player/file.swf" quality="high" bgcolor="#000000" width="590" height="440" name="gallery" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;
</noscript>
&lt;/body&gt;
&lt;/html&gt;

Pretty straight forward, but there isn't anything showing. I've checked the source, and the paths are correct.

The flash I'm trying to load up is a photogallery--it uses a loader to extract image sources from an xml file.
#4

[eluser]tomcode[/eluser]
You have to set :
Code:
AC_FL_RunContent(

// ..

‘src’, ‘&lt;?=base_url()?&gt;player/file.swf’,
‘movie’, ‘&lt;?=base_url()?&gt;player/file.swf’,
// ..
);
#5

[eluser]rvillalon[/eluser]
Fixing the src and movie path didn't work. Any other ideas?
#6

[eluser]rvillalon[/eluser]
Might it have to do with some unique way of implementing flash or paths for CI?

I can access my .swf file directly and it seems to be working fine, so I'm really at a lost... I'm thinking it has to do with CI.
#7

[eluser]tomcode[/eluser]
Sorry, I think You have to set the paths to :

Code:
AC_FL_RunContent(

// ..

‘src’, ‘&lt;?=base_url()?&gt;player/file’,
‘movie’, ‘&lt;?=base_url()?&gt;player/file’,
// ..
);

I use since long now swfobject ....
#8

[eluser]rvillalon[/eluser]
tomcode, it seems to have worked somewhat. it's kinda loading the swf file now but i still don't see any of the photos I've loaded up in flash.

here's an example of the gallery:
http://stage.site.net/public_html/player/gallery.html

here's where it doesnt work:
http://stage.site.net/public_html/index....ople/modal
#9

[eluser]rvillalon[/eluser]
I've just tested it with a different swf file and it worked. I think it has to do with loading the xml and image sources? Does CI affect that in flash? I would think not?...
#10

[eluser]tomcode[/eluser]
The flash cannot load the xml file, it tries to load it from http://stage.claritylabs.net/public_html...gelist.xml.

You have to set the xml path to an absolute URL, too.




Theme © iAndrew 2016 - Forum software by © MyBB