<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Calling a JavaScript function from Actionscript 3 (Flash)</title>
	<atom:link href="http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash</link>
	<description></description>
	<lastBuildDate>Sun, 22 Jan 2012 07:31:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: FreakP</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-3459</link>
		<dc:creator>FreakP</dc:creator>
		<pubDate>Wed, 26 Oct 2011 13:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-3459</guid>
		<description>wow Thx man. Nice Job</description>
		<content:encoded><![CDATA[<p>wow Thx man. Nice Job</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hovik</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-2768</link>
		<dc:creator>Hovik</dc:creator>
		<pubDate>Tue, 20 Sep 2011 10:36:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-2768</guid>
		<description>hello again :)
well Im sorry its working, but there is a TIP!
u have to use it in IIS mode &amp; also function without ()


ExternalInterface.call(“btnClick”, &quot;param&quot;);

tnx again</description>
		<content:encoded><![CDATA[<p>hello again <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
well Im sorry its working, but there is a TIP!<br />
u have to use it in IIS mode &amp; also function without ()</p>
<p>ExternalInterface.call(“btnClick”, &#8220;param&#8221;);</p>
<p>tnx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hovik</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-2767</link>
		<dc:creator>Hovik</dc:creator>
		<pubDate>Mon, 19 Sep 2011 15:12:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-2767</guid>
		<description>hello there :)
well i find it by googling &amp; seams ok for all but it doesnt work for me. im new &amp; not a Adobe developer.
this is my scenario :
i have a pic in my stage &amp; code below as my code. I publish it in a HTML &amp; add a btnClick function in it. none of 2 ways of calling works.

stage.addEventListener(MouseEvent.CLICK, ClickFunc);
function ClickFunc(evt:MouseEvent):void
{
   ExternalInterface.call(&quot;btnClick()&quot;);
   ExternalInterface.call(&quot;btnClick&quot;);
}

any help will be appreciated</description>
		<content:encoded><![CDATA[<p>hello there <img src='http://codingrecipes.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
well i find it by googling &amp; seams ok for all but it doesnt work for me. im new &amp; not a Adobe developer.<br />
this is my scenario :<br />
i have a pic in my stage &amp; code below as my code. I publish it in a HTML &amp; add a btnClick function in it. none of 2 ways of calling works.</p>
<p>stage.addEventListener(MouseEvent.CLICK, ClickFunc);<br />
function ClickFunc(evt:MouseEvent):void<br />
{<br />
   ExternalInterface.call(&#8220;btnClick()&#8221;);<br />
   ExternalInterface.call(&#8220;btnClick&#8221;);<br />
}</p>
<p>any help will be appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elvis</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-2720</link>
		<dc:creator>Elvis</dc:creator>
		<pubDate>Mon, 22 Aug 2011 18:11:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-2720</guid>
		<description>I thought I should let you guys know that I was trying to get a js variable into Flash. I was getting NUlls and had no idea why , it was because of the syntax:

X:String = ExternalInterface.call(&quot;get_X&quot;);

don&#039;t add the paren to get_X, so don&#039;t do:
ExternalInterface.call(&quot;get_X()&quot;);

that will return null, you need it WITHOUT the paren. Hope that helps!</description>
		<content:encoded><![CDATA[<p>I thought I should let you guys know that I was trying to get a js variable into Flash. I was getting NUlls and had no idea why , it was because of the syntax:</p>
<p>X:String = ExternalInterface.call(&#8220;get_X&#8221;);</p>
<p>don&#8217;t add the paren to get_X, so don&#8217;t do:<br />
ExternalInterface.call(&#8220;get_X()&#8221;);</p>
<p>that will return null, you need it WITHOUT the paren. Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflexion Graphic</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-2101</link>
		<dc:creator>Reflexion Graphic</dc:creator>
		<pubDate>Thu, 30 Jun 2011 09:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-2101</guid>
		<description>Thank you. Very helpul !</description>
		<content:encoded><![CDATA[<p>Thank you. Very helpul !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jitender</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-2#comment-2005</link>
		<dc:creator>jitender</dc:creator>
		<pubDate>Sat, 21 May 2011 13:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-2005</guid>
		<description>Hi 

i have try this below code for Call a javescript function. 

import flash.external.ExternalInterface;
ExternalInterface.call(&quot;alertB()&quot;);

But When i check this on brower, Browser is displayed a error.
Flash player eneble security . Something ok setting</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>i have try this below code for Call a javescript function. </p>
<p>import flash.external.ExternalInterface;<br />
ExternalInterface.call(&#8220;alertB()&#8221;);</p>
<p>But When i check this on brower, Browser is displayed a error.<br />
Flash player eneble security . Something ok setting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Talha Kamran</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-1#comment-1986</link>
		<dc:creator>Talha Kamran</dc:creator>
		<pubDate>Fri, 13 May 2011 23:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-1986</guid>
		<description>Hi, 
Need help. kind of in a pickle. 
Someone asked me to create a RSS feed reader and it appears that swf files can not load xml data on a different domain. (Tell me if it is possible to load data cross domain)

so i decided to use XMLHttpRequest to pull XML and then load it in Flash. What is the best way to pass that entire XML to flash movie.

Thanks,
Talha</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Need help. kind of in a pickle.<br />
Someone asked me to create a RSS feed reader and it appears that swf files can not load xml data on a different domain. (Tell me if it is possible to load data cross domain)</p>
<p>so i decided to use XMLHttpRequest to pull XML and then load it in Flash. What is the best way to pass that entire XML to flash movie.</p>
<p>Thanks,<br />
Talha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colo</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-1#comment-1823</link>
		<dc:creator>colo</dc:creator>
		<pubDate>Tue, 12 Apr 2011 14:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-1823</guid>
		<description>Gracias!!!</description>
		<content:encoded><![CDATA[<p>Gracias!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fractalized</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-1#comment-1698</link>
		<dc:creator>Fractalized</dc:creator>
		<pubDate>Tue, 08 Mar 2011 17:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-1698</guid>
		<description>To pick up on an earlier comment posted by Farid...

&#039;...so i think if you would not to pass any arguments to function you should write
ExternalInterface.call(“your_javascript_function”);
without ===&gt; “()”.&#039;

I have found that passing a js function in this manner, ie. without parentheses, is the only way to make things work if you want return values to actionscript (3.0).   When things don&#039;t work, where you can&#039;t seem to get javascript return values, there are no errors.

Otherwise things work with or without empty javascript argument.

This website gave me good guidance and I appreciated it.</description>
		<content:encoded><![CDATA[<p>To pick up on an earlier comment posted by Farid&#8230;</p>
<p>&#8216;&#8230;so i think if you would not to pass any arguments to function you should write<br />
ExternalInterface.call(“your_javascript_function”);<br />
without ===&gt; “()”.&#8217;</p>
<p>I have found that passing a js function in this manner, ie. without parentheses, is the only way to make things work if you want return values to actionscript (3.0).   When things don&#8217;t work, where you can&#8217;t seem to get javascript return values, there are no errors.</p>
<p>Otherwise things work with or without empty javascript argument.</p>
<p>This website gave me good guidance and I appreciated it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor</title>
		<link>http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash/comment-page-1#comment-1656</link>
		<dc:creator>Victor</dc:creator>
		<pubDate>Thu, 24 Feb 2011 20:09:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.code-head.com/?p=460#comment-1656</guid>
		<description>Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

