<?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>Jonathan Wijaya Loe&#039;s blog &#187; actionscript</title>
	<atom:link href="http://blog.jloe.net/tag/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jloe.net</link>
	<description>A blog about technology blogging, tips and tricks, troubleshooting, and step by step tutorial with specialties in Microsoft .NET, C#, Zend, and PHP. Also includes wonderful and inspiring stories and jokes.</description>
	<lastBuildDate>Mon, 02 May 2011 00:05:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Javascript call ActionScript</title>
		<link>http://blog.jloe.net/2009/04/19/javascript-call-actionscript/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-call-actionscript</link>
		<comments>http://blog.jloe.net/2009/04/19/javascript-call-actionscript/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 16:21:19 +0000</pubDate>
		<dc:creator>Jonathan Loe</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.jloe.net/?p=42</guid>
		<description><![CDATA[Just to share my finding on how to let javascript communicate with actionscript and vice versa. The complete source can be downloaded from <a title="source files" href="http://blog.jloe.net/wp-content/uploads/2009/04/jloe-external-as3.zip">here</a>. However I will highlight some important lines.]]></description>
			<content:encoded><![CDATA[<p>Just to share my finding on how to let javascript communicate with actionscript and vice versa. The complete source can be downloaded from <a title="source files" href="http://blog.jloe.net/wp-content/uploads/2009/04/jloe-external-as3.zip">here</a>. However I will highlight some important lines.</p>
<pre name="code" class="html:firstline[5]">
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</pre>
<p>Make sure the above lines are inserted within your <code>&lt;head&gt;</code> tags. The script file <code>AC_RunActiveContent.js</code> may be changed depending on where you store the file. The path can be absolute path/url or relative path to your web root folder.</p>
<pre name="code" class="html:firstline[29]">
	var flash_ID = "External_AS3";
</pre>
<p>Next the value of <code>flash_ID</code> must match with your flash ID as defined in line 82. In this example, &#8220;External_AS3&#8243; is defined as the flash ID.</p>
<pre name="code" class="html:firstline[82]">
			'id', 'External_AS3',
</pre>
<p>Well, that&#8217;s all you need to do. Finally, verify using your browser. This sample has been tested working on Firefox, IE7, and Safari.</p>
<p>I hope this post helpful and feel free to feedback for any unsual encounter. Btw, all credits for this script goes to the following <a title="Flash and JavaScript communication" href="http://www.taterboy.com/blog/2008/08/flash-and-javascript-communication/" target="_blank">site</a>. <img src='http://blog.jloe.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jloe.net/2009/04/19/javascript-call-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

