<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Onyx Design Weblog &#187; Flash</title>
	<atom:link href="http://www.onyx-design.net/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.onyx-design.net</link>
	<description>A weblog about webdesign, webdevelopment, css, php and other webrelated topics.</description>
	<lastBuildDate>Thu, 03 Jun 2010 15:34:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fix &#8220;Click to activate and use this control&#8221;</title>
		<link>http://www.onyx-design.net/flash/fix-click-to-activate-and-use-this-control/</link>
		<comments>http://www.onyx-design.net/flash/fix-click-to-activate-and-use-this-control/#comments</comments>
		<pubDate>Sun, 06 Jan 2008 16:43:12 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.onyx-design.net/weblog2/flash/fix-click-to-activate-and-use-this-control/</guid>
		<description><![CDATA[Internet Explorer 7 has the annoying problem not to activate a flash movie until you click it. Most webmasters don&#8217;t know how to get rid of the &#8220;Click to activate and use this control&#8221;-problem. There is however a simple workaround available. It uses a simple Javascript-function, to echo the embed code with Javascript.

The Javascript part
Make [...]]]></description>
			<content:encoded><![CDATA[<p>Internet Explorer 7 has the annoying problem not to activate a flash movie until you click it. Most webmasters don&#8217;t know how to get rid of the &#8220;Click to activate and use this control&#8221;-problem. There is however a simple workaround available. It uses a simple Javascript-function, to echo the embed code with Javascript.<br />
<span id="more-24"></span></p>
<h3>The Javascript part</h3>
<p>Make a file named <em>iefix.js</em> and add the following code into it:</p>
<p><span class="code">function fix(theText){<br />
document.write(theText);<br />
}</span><br />
That&#8217;s all. This will make a function which will echo the text.</p>
<h3>The <acronym title="HyperText Markup Language">HTML</acronym> part</h3>
<p>First of all, include the Flash into your (X)<acronym title="HyperText Markup Language">HTML</acronym> file, between the two &lt;head&gt; tags.</p>
<p><span class="code">&lt;head&gt;<br />
&lt;!&#8211; your title, meta, etc. &#8211;&gt;<br />
&lt;script src=&#8221;iefix.js&#8221;&gt;/script&gt;<br />
&lt;/head&gt;<br />
</span></p>
<p>Now we have to change the code to embed the flash file. If you have this code:</p>
<p><span class="code">&lt;object<br />
classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;<br />
codebase=&#8221;http://download.macromedia.com<br />
/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&#8243;<br />
width=&#8221;400&#8243; height=&#8221;300&#8243; id=&#8221;movie&#8221; align=&#8221;"&gt;<br />
&lt;param name=&#8221;movie&#8221; value=&#8221;http://www.tizag.com/pics/flash/button1easy.swf&#8221;&gt;<br />
&lt;embed src=&#8221;http://www.tizag.com/pics/flash/button1easy.swf&#8221; quality=&#8221;high&#8221; width=&#8221;400&#8243;<br />
height=&#8221;300&#8243; name=&#8221;movie&#8221; align=&#8221;"<br />
type=&#8221;application/x-shockwave-flash&#8221;<br />
plug inspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221;&gt;<br />
&lt;/object&gt;<br />
</span></p>
<p>Change it into this:</p>
<p><span class="code">&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
fix(&#8217;&lt;object&#8217;)<br />
fix(&#8217;classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243; &#8216;)<br />
fix(&#8217;codebase=&#8221;http://download.macromedia.com&#8217;)<br />
fix(&#8217;/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&#8243;&#8216;)<br />
fix(&#8217;width=&#8221;400&#8243; height=&#8221;300&#8243; id=&#8221;movie&#8221; align=&#8221;"&gt;&#8217;)<br />
fix(&#8217;&lt;param name=&#8221;movie&#8221; value=&#8221;http://www.tizag.com/pics/flash/button1easy.swf&#8221;&gt;&#8217;)<br />
fix(&#8217;&lt;embed src=&#8221;http://www.tizag.com/pics/flash/button1easy.swf&#8221; quality=&#8221;high&#8221; width=&#8221;400&#8243;&#8216;)<br />
fix(&#8217;height=&#8221;300&#8243; name=&#8221;movie&#8221; align=&#8221;" &#8216;)<br />
fix(&#8217;type=&#8221;application/x-shockwave-flash&#8221;&#8216;)<br />
fix(&#8217;plug inspage=&#8221;http://www.macromedia.com/go/getflashplayer&#8221;&gt; &#8216;)<br />
fix(&#8217;&lt;/object&gt;&#8217;)<br />
&lt;/script&gt;<br />
</span></p>
<h3>That&#8217;s it</h3>
<p>Job&#8217;s done. I made example to show the <a href="http://www.onyx-design.net/weblog2/wp-content/uploads/2008/01/flash.html"><strong>result</strong></a>.<br />
The first one is the normal code, the second should display properly in Internet Explorer.</p>
<p>Was this article useful for you? Please leave a comment and tell how this tutorial helped you.</p>]]></content:encoded>
			<wfw:commentRss>http://www.onyx-design.net/flash/fix-click-to-activate-and-use-this-control/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
