Forum Moderators: open

Message Too Old, No Replies

Active x fix works in IE not in firefox though!

active x, firefox, flash

         

diegomh7

6:37 pm on Jun 18, 2006 (gmt 0)

10+ Year Member



Bugger! The active x fix that adobe and microsoft has released due to the eolas lawsuit doesnt seem to be working for me in firefox.

so right, my htm file has this written in the <head> section,

<script src="swf_includes/header.js" type="text/javascript"></script>

The header.js file looks like this:

function Header()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="760" height="150">\n');
document.write('<param name="movie" value="swf/titlebar.swf" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="URL" value="../swf/titlebar.swf" width="760" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></object>\n');
}

then on my html file in the body where I want my flash movie to appear ive put this :

<script type="text/javascript">Header();</script>

It works fine in IE but shows nothing in firefox.

Please help me guys,

regards,

Diego

Where am i going wrong?

oxbaker

3:23 pm on Jun 19, 2006 (gmt 0)

10+ Year Member



firefox requires the EMBED tag not the OBJECT tag, your missing some lines. Take a good look at how flash publishes an object to html, you'll notice both OBJECT and EMBED tags with the path to the .swf in them. you only have OBJECT (which is IE) EMBED is Opera, Mozilla, etc...

The workaround works, your just missing some of it.

mcm

oxbaker

10:23 pm on Jun 19, 2006 (gmt 0)

10+ Year Member



also.. i believe (but am not 100% sure) that you ONLY require the fix in javascript for IE, so you could either add the firefox EMBED tags to your Header() function, or you can just put them on the page in html (as you would have normally). I would, just for clean code, include both in the javascript function, however im pretty sure you can do it both ways.

hth,
mcm

diegomh7

10:35 pm on Jun 19, 2006 (gmt 0)

10+ Year Member



thanx m8 ill look into it,

regards,

Diego