SOLVED: IE forces extra clicks on Flash


#1

EDIT: This question is solved. Thank you!

Hi everyone, ever since an IE update about 6 months ago, all of the Flash buttons on my site seem to require two clicks to activate the links. It’s almost like the first click selects the object and the second click activates it. It worked fine prior to that update.

Also, if I view the site in FireFox, it works fine, even today. So it seems to be an IE issue.

Any ideas on how to fix this? Is it a known bug for IE?

My site is coopgamer.com. Try clicking the buttons in the left frame to see what I mean.

Thanks for any and all help.


#2

Check this out:

http://www.amarasoftware.com/flash-problem.htm


#3

Yeah, Microsoft got sued by a company who claims a patent on the idea of embedding media within a web page. Crazy, I know, but they had to alter IE to prevent it from automatically running JAVA/Flash applets when the page loads.

The way I get around it is by using JavaScript to embed the Flash code into the page rather than writing it directly into the HTMl code. So, where my Flash code would normally go, I insert:

<script src="embed.js"></script> And the file “embed.js” contains the normal Flash embedding code, contained within document.write statements:

document.write('<object classid="blahblahblah" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="730" height="550" id="template2" align="middle">'); document.write('<param name="allowScriptAccess" value="sameDomain" />'); document.write('<param name="movie" value="bg1.swf" />'); document.write('<param name="quality" value="high" />'); document.write('<param name="bgcolor" value="#000033" />'); document.write('<embed src="bg1.swf" quality="high" bgcolor="#000033" width="730" height="550" name="template2" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed>'); document.write('</object>'); Hope this helps


#4

Thank you both for your help!

I used the information linked by AVTECH and it worked! Took me only a couple minutes using the “easy” solution.

Thanks again, that was just incredible.