Can't get flash to show up in view |
[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?
[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
[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"> <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="<?=base_url()?>/css/default.css" rel="stylesheet" type="text/css" /> <link href="<?=base_url()?>/css/thickbox.css" rel="stylesheet" type="text/css" /> [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] <title>Test</title> </head> <body> [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> <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"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="<?=base_url()?>player/file.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="<?=base_url()?>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" /> </object> </noscript> </body> </html> 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.
[eluser]tomcode[/eluser]
You have to set : Code: AC_FL_RunContent(
[eluser]rvillalon[/eluser]
Fixing the src and movie path didn't work. Any other ideas?
[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.
[eluser]tomcode[/eluser]
Sorry, I think You have to set the paths to : Code: AC_FL_RunContent( I use since long now swfobject ....
[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
[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?...
[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. |
Welcome Guest, Not a member yet? Register Sign In |