View Full Version : SWFObject being blocked in IE

12-01-2008, 11:23 AM
OK - this may not be an SWFObject issue, but...

I just updated one of my sites the other day to use SWFObject to replace the old Flash detection. All is fine in other browsers, however IE now won't allow any content until the user has clicked that annoying yellow bar.

www.nocturnalgroove.co.uk (http://www.nocturnalgroove.co.uk)

I actually sent it live without checking! Stupid me.

I'm using really basic code:

// flash download page if below flash 7
window.location.href = "assets/html/get-flash.html";

// flashvars
flashvars =
mode: 'high'

// params
params =
menu: 'false',
scale: 'noscale',
bgcolor: '#000000'

// embed
swfobject.embedSWF("ng.swf", "content", "800", "550", "7.0.0", null, flashvars, params);

The code is what it says I should from the dynamic publishing (http://code.google.com/p/swfobject/wiki/documentation#How_to_embed_Flash_Player_content_us ing_SWFObject_dynamic_publis) section of the SWFObject site, but the JavaScript will not run straight away so users are seeing the boring text bit of the site.

Does anyone know what is going on? Any help will really be appreciated!


12-01-2008, 05:12 PM
Well it's Flash 7, so I've just taken out the JS and stuck it in the page vanilla.
Works great but that's worrying that it doesn't work with swfobject.