"Click to Activate" solution! (AKA: Ugly Box problem)

So you’re here because you find that you have an ugly box around your Flash content when viewing it in Internet Explorer.

Or you find you need to CLICK TWICE to get any Flash to work properly.

History of this problem:
These are a result of Microsoft losing a lawsuit with a company called Eolas. MS decided to not pay for a patent license and instead patched their browser to work in a way that does not infringe on the Eolas patent.

One Solution:
Visit www.Adobe.com and download the “fix” for Flash called “Active Content Update”. This fix adds a publishing option, and also a new “Command”. You must use this publishing option and use the Command in order to “add” the fix to your HTML page.

Anyone else: Please add relevant links to other solutions, and perhaps to that older thread which discussed this Eolas mess.

You’re wrong. SWF files usually contain a timeline. It certainly does “play”. That’s why there is play(); and stop(); as the most basic ActionScript most people learn first.

Abobe’s solution in my opinion is quite bulky and ridiculous. The best script I have found so far which works well is at the below address:

http://www.webreference.com/programming/ie/

SWFObject is another popular solution, using javascript. It also provides the capability to provide alternative content for non-flash enabled visitors, and to activate in-page upgrading of the flash player.

http://blog.deconcept.com/swfobject/

Very interesting.

I just started using swfobject (very nice), but I remember seeing “click to activate” even with said javascript solution in said POS browser… although, maybe I did not have it setup correctly…

Anyway, another reason to hate IE. :headbang:

PS: If you wish to read up on a variety of other (yet similar) methods to fix this issue, do a SitePoint search for “eolas”.

Here’s a lengthy thread which much discussion of this issue: http://www.sitepoint.com/forums/showthread.php?t=372542

I actually posted this in the ‘dhtml display over flash’ thread but it applies to here as well and is the best solution to IE’s “click to activate” bug I have seen-

====== re post below from another thread ===========
Thanks to a friend at another forum for this tip.

There IS a way to make flash run UNDER dhtml and still avoid IE’s “click to activate” feature (ahem!).

See how here- http://blog.deconcept.com/swfobject/

It took a bit of getting my head around how it all works but its not that hard in the end. I had to dig a bit more as my flash is pulling random movies and such but once you figure out how the so.addParam works, it’s easy stuff (basically the same as the old way of publishing flash).

See it in action here- http://www.zacspeed.com/exotecsp3.shtml (click on the product images to see the dhtml running OVER the top of the flash header).

There is an extension for Dreamweaver so you use this method with just a few mouse clicks (http://www.communitymx.com/abstract.cfm?cid=3DA1E).

====================================

I currently just use javascript include and in the javascript file I document.write the code that displays the flash and it works fine. However it doesn’t seem to work in IE7? any experience with this?

:sick:

How it works?
When I replaced the original tags with the Java the flash file disappears. And how it’s possible to put javascript inside the body tag?

Please, I need help. :injured:

I’m definitely suggest to use SWFObject to fix this issue. It’s most smart and simple solution and also easily integrating with flash player ExpressInstall.
In the download package you will find few samples of usage.
Also pay attention to the SWFAdress script that intergrated with SWFObject. Very useful for the deep linking in flash sites.

Great - any idea where the zip file is for this?

Thanks
Steven

If you are using Dreamweaver 8 there is a solution for this included in the 8.0.2 Updater.

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=2f98fbe7

To summarise whenever you insert an .swf file into your webpage it will create an external .js file in a subfolder entitled ‘Scripts’.

It will also add the same into any existing webpages which include .swf files when you re-open them in DW.

I downloaded the updater the moment I saw it and haven’t had any problems since.

There’s no zip file. Just download the trial, execute it once, and you’ll notice what’s going on (it’s not difficult). Then uninstall the program.

See if this helps:

http://midwestwebdesign.net/tutorials/flash/faq/activecontent/index.php

That’s the same worthless script that has been known to cause conflicts in pages with extensive body calls and JS occuring.

ive been using the SWFObject to fix this issue in ie…however im after a way of making the movies transparent?

any ideas - heres the movie in question

http://hunterjohnstone-info.co.uk/oxygen/D100001%20silverbean/services.html

This helped me :

Although I prefer SWFObject for its versatility, it’s easy enough to use the JavaScript solution you mentioned.

Create a file called movie.js, for instance, with the following code (you’ll need to edit the size, movie name, Flash version, paths, etc:

function RunMovie()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="movie" width="300"  height="300">\
');
   document.write('<param name="movie" value="movie.swf">\
');
   document.write('<param name="quality" value="high">\
');
   document.write('<param name="wmode" value="transparent">\
');
   document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="header" width="300" height="300" src="movie.swf" quality="high" wmode="transparent" swliveconnect="true" allowscriptaccess="samedomain"></embed>\
');
   document.write('</object>\
');
}

Add this between your <head> tags:

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

Then simply add this code where you’d like your movie to display:

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

If you’re doing it like that, IE7 should have no problems at all, and there should be no “click to activate” problem either.

One thing, it is a sort of validation “cheat” though.

OT: Sorry for the bump, but I thought this info might be useful to someone.

Cheers,

Have you seen this?

[COLOR=#0000ff]www.adobe.com/devnet/activecontent/articles/devletter.html[/COLOR]

‘On November 8, 2007, Microsoft announced that, as a result of recent technology licenses acquisitions, the ‘click to activate’ restrictions are no longer mandatory. Microsoft plans to remove the activation behavior from Internet Explorer in April 2008’

yeah but i hear this is only going to apply to a patch release for Vista.