View Full Version : How to fix the "click to activate and use this control" problem
How can we get rid of this problem in flash object:
click to activate and use this control
Can we get rid of this problem?
mtran
06-01-2007, 01:16 PM
Here :
http://www.adobe.com/devnet/flash/articles/swfobject.html
or here - the same thing:
blog.deconcept.com/swfobject/ (blog.deconcept.com/swfobject/)
Thanks,
I have just found the solution:
place the following javascript code below the last OBJECT tag on the page:
=======code=====
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
=======code ends======
You can also save it as .js file and call the file after the last OBJECT code....
Jon101
06-03-2007, 03:16 PM
Hmm, i cant seem to get it to work on my site... I tried putting the above code under the last object tag, but nothing happened.
I don't see why this is a problem.
objects[i].outerHTML = objects[i].outerHTML;This will cause an error to be displayed in non-IE browsers.
Jon101
06-03-2007, 04:43 PM
Oh, so this only works for ie?
Only IE displays the message (natively, there's a Firefox extension called FlashBlock that performs the same function but I don't think it's so easily circumventable).
Jon101
06-03-2007, 04:47 PM
Oh, I see..
So i put:
objects[i].outerHTML = objects[i].outerHTML;
right after "</object>" in the html page, right?
Put this at the bottom of your page:
<script type="text/javascript">
for(var i = 0, es = document.getElementsByTagName("object"), e = es[0]; i < es.length; e = es[++i])
if(e.outerHTML)
e.outerHTML = e.outerHTML;
</script>This is the principle of which Raj spoke, but I don't know how effective it will be (I work with neither Flash nor IE). I still fail to understand why this message is a problem.
Jon101
06-03-2007, 04:56 PM
Its a bit of a burden to have to double click on nav's. Clients dont fancy it much. Thanks, ill let you know if it works.
Medyman
06-03-2007, 05:06 PM
Use SWFObject!
http://blog.deconcept.com/swfobject/
It's by far the easiest, most effective, cross browser way of doing it (and the defacto industry standard from my experience).
Jon101
06-03-2007, 05:09 PM
Twey,
I put it at the bottom, within the <BODY></BODY> tags and nothing happned.
I guess it doesn't work too well then.
I know a lot of people with Firefox who go to the trouble of downloading an extension specifically for this purpose, it can't be that much of a bother to people.
xxlfm
06-10-2007, 06:09 PM
include this as js file and add after the flash
<script type="text/javascript" src="includes/ieupdate.js"></script>
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
ops, some one already posted...:))
alexjewell
06-10-2007, 06:35 PM
xxlfm, as Twey said, the following line would create an error in non-IE browsers:
theObjects[i].outerHTML = theObjects[i].outerHTML;
xxlfm
06-11-2007, 01:33 AM
really? I use this code for quite a few web sites.
and I tested in all Gecko browsers, FF, Opera, and NS newset version, maybe in the old version?
check it at http://www.1000knots.net/topic.php?t=1000knots&m1=portfolio
David Farmer
07-03-2007, 01:30 PM
Lot's of great solutions, soem a little more complex than others!
If any one is still having trouble working out some of these javascript add-ins you can get Creative Media to do a quick fix for you. Costs £25, but might save you a lot of time in the long run if your not that fluent in javascript!
http://www.creativemedianetwork.co.uk/website/flashfix.html
Medyman
07-04-2007, 03:28 AM
Lot's of great solutions, soem a little more complex than others!
If any one is still having trouble working out some of these javascript add-ins you can get Creative Media to do a quick fix for you. Costs £25, but might save you a lot of time in the long run if your not that fluent in javascript!
http://www.creativemedianetwork.co.uk/website/flashfix.html
Why would you pay for it? For one, £25 ($50) is way too pricey to to a simple JS install.
Again, SWFObject...very very easy to use! EVERYONE should be able to figure that out. If not, thats what forums like these are for. :)
if I use the SWFobject fix I get IE's security warning (IE6).
Is this normal and is there another way that works?
Medyman
07-31-2007, 03:36 AM
What exact security working are you getting? You're probably implementing it wrong. SWFObject should not give a security error.
There are a lot of other ways though. Have a look at this: http://blog.jrvisuals.com/?p=8
jscheuer1
07-31-2007, 03:54 AM
Actually, IE is not the only browser with the 'click to activate feature'. The solutions which use outerHTML however, will only work in IE. Any solution must be executed from an external script, otherwise they cannot work. You may use my wizard if you like:
http://home.comcast.net/~jscheuer1/side/click_to_activate_w.htm
It works for all multimedia types in all browsers.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.