CodeIgniter Forums
In desparate need of help with embedding Flash - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: In desparate need of help with embedding Flash (/showthread.php?tid=7068)

Pages: 1 2


In desparate need of help with embedding Flash - El Forum - 01-10-2009

[eluser]therealmaloy[/eluser]
charlie

i always use the swfobject and it works fine... normally i used the absolute addressing method for flash file's location.

fyi: swfobject 2.x used here

Code:
var flashvars = {};
var params = { wmode: "opaque" };
var attributes = {};

swfobject.embedSWF("http://www.mySite.com/public/flash_files/banner_main.swf", "flashcontent", "716", "243", "9.0.0", "download/expressInstall.swf",flashvars, params, attributes);

swfobject target inside html

Code:
<div id="flashcontent">
   flash here
</div>



In desparate need of help with embedding Flash - El Forum - 01-11-2009

[eluser]Colin Williams[/eluser]
Anytime you reference a resource, it doesn't matter whether you reference it absolutely or relatively; it just matters that you reference it correctly. View the source of your rendered page. Find the URI that is generated in the SWFObject/embed code. Copy and paste the URI in a new window address bar. If you get a 404, or anything other than your flash file, then you know you are referencing it incorrectly. If it appears you are referencing it correctly, but you still get a CI-generated page, double-check your mod_rewrite rules. You could be telling Apache to go through CI to serve requests at that URI