<?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>NewSourceMedia Blog &#187; Flash Setup</title>
	<atom:link href="http://newsourcemedia.com/blog/category/flash/flash-setup/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash ActiveX Workaround Javascript Fix</title>
		<link>http://newsourcemedia.com/blog/flash-activex-workaround-javascript-fix/</link>
		<comments>http://newsourcemedia.com/blog/flash-activex-workaround-javascript-fix/#comments</comments>
		<pubDate>Sun, 05 Aug 2007 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash Setup]]></category>
		<category><![CDATA[Javascript and Flash]]></category>
		<category><![CDATA[Workarounds]]></category>
		<category><![CDATA[flash active X activex javascript fix issue problem workaround work around solution click to activate]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2007/08/04/flash-activex-workaround-javascript-fix/</guid>
		<description><![CDATA[Here is how to fix the activex issue "click to activate" by using javascript. Here is how to fix the activex issue "click to activate" by using javascript with the flash embed tag and object tags. The answer is to &#8230; <a href="http://newsourcemedia.com/blog/flash-activex-workaround-javascript-fix/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[Here is how to fix the activex issue "click to activate" by using javascript.
<span id="more-163"></span>

Here is how to fix the activex issue "click to activate" by using javascript with the flash embed tag and object tags.

The answer is to take your embed  and object tags and place each line in a javascript function called document.write().

For example if you wanted to write something to be displayed in html from javascript, you would do this
<p class="code">document.write("&lt;b&gt;My name is Alex&lt;/b&gt;");</p>

Notice you can  use html tags inside the two Quotes.

Ok here is an over view on how you would setup the html and javascript file.

1) First in flash publish setting, make sure to include the html and then click publish.

2) Next open the html page and take each flash embed  and object tags and place them in a separate javascript file named "flash.js" between the document.wite function like so:

<span class="code">function embedFlash()
{
document.wite('&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="990" height="200" id="your_flash_file" align="middle"&gt;');
document.write('&lt;param name="allowScriptAccess" value="sameDomain" /&gt;');
document.write('&lt;param name="movie" value="your_flash_file.swf" /&gt;&lt;param name="quality" value="high" /&gt;&lt;param name="bgcolor" value="#ffffff" /&gt;');
document.write('&lt;embed src="your_flash_file.swf" quality="high" bgcolor="#ffffff" width="990" height="200" name="your_flash_file" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;');
document.write('&lt;/object&gt;');
}</span>

NOTE: We place all of the document.write() functions in to our own custom function call embedFlash(){ }.

3) Next in the html file you will need to include the javascript file to call that new custom function we created call "embedFlash" like so:
<p class="code">&lt;html&gt;
&lt;body&gt;
&lt;script src="flash.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt; embedFlash();&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;

That's it. The html above is just a striped down version of an html page without the header and title tags. But you get the picture!]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/flash-activex-workaround-javascript-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
