Most Reliable/Shortest Flash Activation Script

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All

I've used about 5 different javascripts to sort out this annoying habit that
IE has re asking for a click to activate on flash files in my web pages, but
none seem to do the trick.

Does anybody have a definitive one that isn't a foot long in code?



ps: What I tend to do is also embed an IMG tag line within the object/embed
code as a graceful picture fallback if the browser doesn't have flash
player - would this effect your code?

Re: Most Reliable/Shortest Flash Activation Script

Laphan wrote:
Quoted text here. Click to load it

The key here (and it might seem hard to believe) is that the function
you call to write to the innerHTML, *MUST* be in a separate JS file.
Here's a simple example with minimalist tags and no feature tests or
null object tests:

<script src="ext.js"></script>
<div id="mydiv"></div>
   var myembed="<object bla bla bla bla bla>";

The ext.js file will do something like this:

function myExternalEmbedFunc(targ,str)
   var t=document.getElementById(targ);

This behaviour you're seeing is usually referred to as the EOLAS
problem. It doesn't help you much right now, but Microsoft are backing
out the change they made to IE6/7 that causes this. That's in a future
update though.

Re: Most Reliable/Shortest Flash Activation Script

Stevo wrote:
Quoted text here. Click to load it

Funny timing. I just got this RSS feed from the MSDN blog:

The IE Automatic Component Activation (IE ACA) update is now available
as part of the April 2008 Internet Explorer Cumulative Update. The
"click to activate" behavior, formerly required for ActiveX controls
embedded in some webpages, is now permanently removed from Internet
Explorer.  For detailed information on IE ACA, see our blog post from
last November announcing this update.

This update replaces the IE ACA previews released in December 2007 and
February 2008.

Site Timeline