{"id":1859,"date":"2010-11-15T10:24:59","date_gmt":"2010-11-15T10:24:59","guid":{"rendered":"http:\/\/mts-help.nick.php.dev\/after_sale_support\/Working_with_Flash\/Advanced\/article23.html"},"modified":"2015-09-17T07:34:47","modified_gmt":"2015-09-17T11:34:47","slug":"how-disable-activex-warning-ie6-7","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-disable-activex-warning-ie6-7.html","title":{"rendered":"How to disable ActiveX warning in IE6\/7"},"content":{"rendered":"<span style=\"font-weight: bold;\">Q:<\/span> Why do I have to click twice on the flash object to change the page or open a link?\u00a0 Why does that happen in IE only?\r\n\r\n<span style=\"font-weight: bold;\">A:<\/span> <span style=\"font-weight: bold;\">Control Activation Problem Description:<\/span> Microsoft has changed the behavior of the Internet Explorer browser to require an activation click on the embedded control before a visitor is allowed to interact with the applet. The change affects all interactive ActiveX controls in a web page. In particular, it affects any Flash movie (SWF) content in a web page. This affects the output from all current and earlier applications which exported HTML\/SWF files including Adobe Flash and SWiSHMax software. Interactive controls are ActiveX controls that provide user interfaces. When a web page uses the APPLET, EMBED or OBJECT elements to load an ActiveX control, the controls user interface requires extra click until the user activates it. IE shows a tooltip when you hover over the control that says \u201cClick to activate and use this control\u201d. The user then has to click once to activate and then again to press a button or click a link displayed by the Flash or Java applet.\r\n\r\n<span style=\"font-weight: bold;\">Solution to the problem:<\/span> There is a workaround to this problem involving an external javascript include, which involves another layer between the embedded control and the browser. A simpler technique that can be used requires only a minimal addition to the existing HTML tags, and a small JavaScript file.\r\n\r\n<span style=\"font-weight: bold;\">Step 1<\/span>. Add the following line of code right after the opening tag &lt;head&gt;\r\n<div class=\"example_code\">&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;flash\/flashobject.js&#8221;&gt;&lt;\/script&gt;<\/div>\r\n<span style=\"font-weight: bold;\">Step 2<\/span>. A JavaScript file (<a class=\"link3\" href=\"files\/flashobject.zip\">download here<\/a>) should be placed to the same directory as SWF file, in this example it\u2019s put to the folder &#8220;flash&#8221;. Now comes the part with replacing the tag with a call to the JavaScript function. Here&#8217;s an example:\r\n\r\nReplace &lt;object&gt; tag:\r\n<div class=\"example_code\">&lt;object classid=&#8221;clsid: D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;\r\ncodebase=&#8221;http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0&#8243; width=&#8221;768&#8243; height=&#8221;347&#8243;&gt;\r\n&lt;param name=&#8221;movie&#8221; value=&#8221;flash\/header.swf?button=4&#8243;&gt;\r\n&lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221;&gt;\r\n&lt;param name=&#8221;menu&#8221; value=&#8221;false&#8221;&gt;\r\n&lt;param name=&#8221;wmode&#8221; value=&#8221;transparent&#8221;&gt;\r\n&lt;!\u2013[if !IE]&gt; &lt; \u2013&gt;\r\n&lt;object data=&#8221;Flash\/header.swf?button=4&#8243; width=&#8221;768&#8243; height=&#8221;347&#8243; type=&#8221;application\/x-shockwave-flash&#8221;&gt;\r\n&lt;param name=&#8221;quality&#8221; value=&#8221;high&#8221;&gt;\r\n&lt;param name=&#8221;menu&#8221; value=&#8221;false&#8221;&gt;\r\n&lt;param name=&#8221;wmode&#8221; value=&#8221;transparent&#8221;&gt;\r\n&lt;param name=&#8221;pluginurl&#8221; value=&#8221;http:\/\/www.macromedia.com\/go\/getflashplayer&#8221;&gt;\r\nFAIL (the browser should render some flash content, not this).\r\n&lt;\/object&gt;\r\n&lt;!\u2013&gt; &lt; ![endif]\u2013&gt;\r\n&lt;\/object&gt;<\/div>\r\nwith JavaScript function:\r\n<div class=\"example_code\">&lt;div id=&#8221;firstflash&#8221;&gt;\r\nWhatever text or html code you would like get&#8217;s put here and will display if the user needs to enable javascript or download flash plugin\r\n&lt;\/div&gt;\r\n&lt;script type=&#8221;text\/javascript&#8221;&gt;\r\nvar fo = new FlashObject(&#8220;flash\/header_v7.swf?button=0&#8221;, &#8220;firstflash&#8221;, &#8220;766&#8221;, &#8220;267&#8221;, &#8220;7&#8221;, &#8220;&#8221;);\r\n&lt;\/script&gt;\r\n&lt;script type=&#8221;text\/javascript&#8221;&gt;\r\n&lt;\/script&gt;\r\n&lt;script type=&#8221;text\/javascript&#8221;&gt;\r\nvar fo = new FlashObject(&#8220;flash\/header_v7.swf?button=0&#8221;, &#8220;firstflash&#8221;, &#8220;766&#8221;, &#8220;267&#8221;, &#8220;7&#8221;, &#8220;&#8221;);\r\nfo.addParam(&#8220;quality&#8221;, &#8220;high&#8221;);\r\nfo.write(&#8220;firstflash&#8221;);\r\n&lt;\/script&gt;<\/div>\r\n<span style=\"font-weight: bold;\">Step 3<\/span>. Then save the document and upload it to your server. When previewing the page in IE you will see that it doesn\u2019t require extra click to activate a Flash part.\r\n\r\n<span style=\"font-weight: bold;\">See also<\/span>:\r\n<a class=\"link3\" href=\"http:\/\/info.template-help.com\/after_sale_support\/Demo_movies_database\/Flash\/article36.html\">How to disable ActiveX warning in IE6\/7 demo movie<\/a>","protected":false},"excerpt":{"rendered":"<p>Q: Why do I have to click twice on the flash object to change the page or open a link?\u00a0 Why does that happen in IE only? A: Control Activation Problem Description: Microsoft has changed the behavior of the Internet Explorer browser to require an activation click on the embedded control before a visitor is [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[355,279],"tags":[530,486],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1859"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=1859"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/1859\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=1859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=1859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=1859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}