<?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>ExternalInterface &#8211; stoimen&#039;s web log</title>
	<atom:link href="/tag/externalinterface/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>on web development</description>
	<lastBuildDate>Tue, 13 Feb 2018 08:18:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.0.3</generator>
	<item>
		<title>Passing objects with ExternalInterface from JS to Flex</title>
		<link>/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/</link>
		<comments>/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/#respond</comments>
		<pubDate>Thu, 29 Oct 2009 14:48:26 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">/?p=781</guid>
		<description><![CDATA[What if you&#8217;d like to pass an object to Flex To continue the topic of my previous post I&#8217;m just going to add that there&#8217;s a native way to pass objects from JavaScript to Flex&#8217;s actionscript. I&#8217;m not going to describe how to structure a object in JavaScript and/or Flex. Let&#8217;s go directly to the &#8230; <a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" class="more-link">Continue reading <span class="screen-reader-text">Passing objects with ExternalInterface from JS to Flex</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2010/12/03/javascript-objects-coding-style-reviewed/" rel="bookmark" title="JavaScript Objects Coding Style Reviewed">JavaScript Objects Coding Style Reviewed </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>What if you&#8217;d like to pass an object to Flex</h2>
<p>To continue the topic of my previous post I&#8217;m just going to add that there&#8217;s a native way to pass objects from JavaScript to Flex&#8217;s actionscript.</p>
<p>I&#8217;m not going to describe how to structure a object in JavaScript and/or Flex. Let&#8217;s go directly to the example.</p>
<p>The function in .js file should return something that is object in JavaScript:</p>
<p><strong>.js file</strong></p>
<blockquote>
<pre>function getObject() {
    return { foo : 'bar', zoo : 'tar' };
}</pre>
</blockquote>
<p><span id="more-781"></span>Now, supposing that in Flex there already has been added a callback with ExternalInterface(&#8216;getObject&#8217;, receiveObject); and the as3 function receiveObject looks similar to this:</p>
<p><strong>.mxml or .as</strong></p>
<blockquote>
<pre>private function receiveObject( obj : Object ) : void
{
    Alert.show(obj.foo);
    Alert.show(obj.zoo);
}</pre>
</blockquote>
<p>That outputs respectively &#8220;bar&#8221; and &#8220;tar&#8221;.</p>
<h2>Even more &#8230;</h2>
<p>You can pass from .js to .as array of objects, but than with small change of the code you&#8217;d access the variables:</p>
<blockquote>
<pre>obj[0].foo
obj[1].foo</pre>
</blockquote>
<p>assuming that there are two objects with same properties.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2010/02/24/storing-javascript-objects-in-html5-localstorage/" rel="bookmark" title="Storing JavaScript objects in html5 localStorage">Storing JavaScript objects in html5 localStorage </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2010/12/03/javascript-objects-coding-style-reviewed/" rel="bookmark" title="JavaScript Objects Coding Style Reviewed">JavaScript Objects Coding Style Reviewed </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips and tricks in ExternalInterface communication!</title>
		<link>/2009/10/28/tips-and-tricks-in-externalinterface-communication/</link>
		<comments>/2009/10/28/tips-and-tricks-in-externalinterface-communication/#respond</comments>
		<pubDate>Wed, 28 Oct 2009 18:31:06 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">/?p=778</guid>
		<description><![CDATA[ActionScript and the rest of the world In the past, when ActionScript v2 was widely used, the most common way to interact with the other parts of the web application, whether a page refresh, redirect or JavaScript method call was the as2 method getURL. With the simple getURL(&#8216;javascript:someJSMethod&#8230;&#8217;) the flash movie called the JS function &#8230; <a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" class="more-link">Continue reading <span class="screen-reader-text">Tips and tricks in ExternalInterface communication!</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
<li><a href="/2009/03/07/flex-javascript-communication/" rel="bookmark" title="Flex Javascript communication">Flex Javascript communication </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>ActionScript and the rest of the world</h2>
<p>In the past, when ActionScript v2 was widely used, the most common way to interact with the other parts of the web application, whether a page refresh, redirect or JavaScript method call was the as2 method getURL. With the simple <strong>getURL(&#8216;javascript:someJSMethod&#8230;&#8217;)</strong> the flash movie called the JS function and everything was OK.</p>
<p>Now in ActionScript v3 where everything looks and it is different, everything about communication between JS and Flash/Flex is done by <strong>ExternalInterface</strong>. The communication can be done in both directions. From JS to Flash and vice versa.</p>
<h2>The ExternalInterface.call</h2>
<p>There are two simple methods implemented by ExternalInteface. The first one is <strong>addCallback</strong> and the second one is <strong>call</strong>. Here I&#8217;m going to write a little more about the second one.</p>
<p>The most common usage is:</p>
<blockquote>
<pre>ExternalInterface.call('jsMethod');</pre>
</blockquote>
<p>where jsMethod is, as you can guess, a JavaScript method. Something like:</p>
<p><strong><em>test.js</em></strong></p>
<blockquote>
<pre>function jsMethod() { alert('test') };</pre>
</blockquote>
<p>A bit different, but yet again simple, is the call to a js function with parameters:</p>
<blockquote>
<pre>ExternalInterface.call('jsMethod', param1, param2);</pre>
</blockquote>
<p>where the javascript function can be:</p>
<blockquote>
<pre>function jsMethod(param1, param2) { alert(param1) };</pre>
</blockquote>
<p>But what I was writing about is really tricky. What if the jsMethod returns a value? Than in the .js file you&#8217;ve the following method:</p>
<blockquote>
<pre>function jsMethod() { return 'foo bar' };</pre>
</blockquote>
<p>and when you try this:</p>
<blockquote>
<pre>var str:String = ExternalInterface.call('jsMethod');
Alert.show(str);</pre>
</blockquote>
<p>you get the alert box with the string &#8216;foo bar&#8217;.</p>
<h2>Where to use it?</h2>
<p>Well this is really useful, because you get the response within the call method, only with the .call instead with .call and than .addCallback. The problem of course appears when you try to use it with AJAX call. Than even if the function returns in the success method of the AJAX call the flash doesn&#8217;t get the response.</p>
<p>Than you simply implement the communication with both .call and .addCallback!</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
<li><a href="/2009/03/07/flex-javascript-communication/" rel="bookmark" title="Flex Javascript communication">Flex Javascript communication </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/10/28/tips-and-tricks-in-externalinterface-communication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ExternalInterface from JavaScript to IE/Firefox</title>
		<link>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/</link>
		<comments>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 06:53:53 +0000</pubDate>
		<dc:creator><![CDATA[Stoimen]]></dc:creator>
				<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[micro tutorial]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[object]]></category>

		<guid isPermaLink="false">/?p=660</guid>
		<description><![CDATA[ExternalInterface communication with JavaScript The most simple way to describe the case is as if you have the ExternalInterface addCallback in the Flex application like that: flex.mxml ExternalInterface.addCallback("jsFunc", flexFunc); public flexFunc() : void { ... } and in the javascript code you&#8217;ve something like that: file.js function getSwf(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return &#8230; <a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" class="more-link">Continue reading <span class="screen-reader-text">ExternalInterface from JavaScript to IE/Firefox</span> <span class="meta-nav">&#8594;</span></a><div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/03/09/flex-javascript-communcation-example/" rel="bookmark" title="Flex Javascript communcation example">Flex Javascript communcation example </a></li>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<h2>ExternalInterface communication with JavaScript</h2>
<p>The most simple way to describe the case is as if you have the ExternalInterface addCallback in the Flex application like that:</p>
<p><strong>flex.mxml</strong></p>
<blockquote>
<pre>ExternalInterface.addCallback("jsFunc", flexFunc);

public flexFunc() : void
{ ... }</pre>
</blockquote>
<p>and in the javascript code you&#8217;ve something like that:<span id="more-660"></span></p>
<p><strong>file.js</strong></p>
<blockquote>
<pre>function getSwf(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
         return window[movieName];
    } else{
         return document[movieName];
    }
}

getSwf('movie').jsFunc();</pre>
</blockquote>
<p>that will execute the <strong>flexFunc</strong> in the flex app.</p>
<h2>Important!</h2>
<p>is very important to have the object/embed tag correct:</p>
<blockquote>
<pre>&lt;object classid="clsid:d27cdb6 ....
&lt;param name="name" value="movie" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="AllowScriptAccess" value="always" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;param name="flashVars" /&gt;
&lt;param name="src" value="movie.swf" /&gt;
&lt;embed ... name="movie"&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
</blockquote>
<h2>That doesn&#8217;t work? Where&#8217;s the bug?</h2>
<p>Even it&#8217;s not so clear the bug is present. The getSwf function gets the window[moviename], or document[moviename] depending of which browser is used. But the problem is that both object and embed tags have same name and the selected object is not one but two.</p>
<h2>So there&#8217;s a simple patch</h2>
<p>Name the object embed tags with different names, i.e.</p>
<blockquote>
<pre>&lt;object classid="clsid:d27cdb6e-ae6d-11 ...&gt;
&lt;param name="name" value="movieie" /&gt;
&lt;param name="allowFullScreen" value="true" /&gt;
&lt;param name="AllowScriptAccess" value="always" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;param name="flashVars" /&gt;
&lt;param name="src" value="movie.swf" /&gt;
&lt;embed ... name="movieie"&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
</blockquote>
<p>now they are named movieie (for IE) and movieff  (for Firefox) and we must to change a bit the getSwf function like that:</p>
<blockquote>
<pre>function getSwf(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
         return window[movieName + 'ie'];
    } else{
         return document[movieName + 'ff'];
    }
}

getSwf('movie').jsFunc();</pre>
</blockquote>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/03/09/flex-javascript-communcation-example/" rel="bookmark" title="Flex Javascript communcation example">Flex Javascript communcation example </a></li>
<li><a href="/2009/10/28/tips-and-tricks-in-externalinterface-communication/" rel="bookmark" title="Tips and tricks in ExternalInterface communication!">Tips and tricks in ExternalInterface communication! </a></li>
<li><a href="/2009/02/09/ie-externalinterface-communication-problem/" rel="bookmark" title="IE &#038; ExternalInterface communication problem">IE &#038; ExternalInterface communication problem </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/07/08/externalinterface-from-javascript-to-ie-firefox/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flex Javascript communcation example</title>
		<link>/2009/03/09/flex-javascript-communcation-example/</link>
		<comments>/2009/03/09/flex-javascript-communcation-example/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 06:59:29 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">/?p=305</guid>
		<description><![CDATA[Here's a short sample, showing how to set up communication between JavaScript and Flex.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/03/07/flex-javascript-communication/" rel="bookmark" title="Flex Javascript communication">Flex Javascript communication </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2011/07/28/oop-javascript-accessing-public-methods-in-private-methods/" rel="bookmark" title="OOP JavaScript: Accessing Public Methods in Private Methods">OOP JavaScript: Accessing Public Methods in Private Methods </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>First of all you&#8217;ve to have both files for JavaScript and Actionscript  3 to make the communication successful. I don&#8217;t remember where exactly I found the tutorial, maybe it was on the official Adobe&#8217;s documentation page, but as I&#8217;ve <a title="javascript to flex communcation with externalInterface" href="/2009/03/07/flex-javascript-communication/" target="_self">written</a> before I&#8217;m going to share my experience with the ExternalInterface options of Flex.</p>
<p>First of all you&#8217;ve to add this at the beginning of the page with the simple js code:</p>
<blockquote><p><span style="color: #808080;"><em>var jsReady = false;<br />
function isReady()<br />
{<br />
return jsReady;<br />
}</em></span></p>
<p><em>function pageInit()<br />
{<br />
jsReady = true;<br />
}</em></p></blockquote>
<p>of course the <strong>pageInit()</strong> function should be called <em><strong>onload</strong></em> of the body. It simply sets the JavaScript part to be ready for communication, after initialize the page. Than a small part of the javascript should be written for really speaking with the Flex application.</p>
<blockquote><p><span style="color: #808080;"><em>var swfReady = false;</em></span></p>
<p><em>function setSWFIsReady() {<br />
swfReady = true;<br />
}</em></p>
<p><em>function getSWF(movieName) {<br />
if (navigator.appName.indexOf(&#8220;Microsoft&#8221;) != -1) {<br />
return window[movieName];<br />
} else {<br />
return document[movieName];<br />
}<br />
}</em></p>
<p><em>function callFlexApp() {<br />
if (swfReady) {<br />
getSWF(&#8220;flash_movie&#8221;).methodInFlex(param_value1, param_value2);<br />
}<br />
}</em></p></blockquote>
<p>Where <em><strong>flash_movie</strong></em> is the id of the object / embed pair.</p>
<p>First of all the JavaScript can begin to call methods in Flex only after the Flex application has returned that it has been initialized. That happens in Flex within the following file:</p>
<blockquote><p><span style="color: #808080;"><em>package communicator {</em></span></p>
<p><em>import flash.events.TimerEvent;<br />
import flash.external.*;<br />
import flash.utils.Timer;</em></p>
<p><em>public class Communicator<br />
{</em></p>
<p><em>public function init():void {</em></p>
<p><em>if (ExternalInterface.available)<br />
{</em></p>
<p><em>var containerReady:Boolean = isContainerReady();<br />
if (containerReady)<br />
{<br />
setupCallbacks();<br />
}<br />
else<br />
{<br />
var readyTimer:Timer = new Timer(100);<br />
readyTimer.addEventListener(TimerEvent.TIMER, timerHandler);<br />
readyTimer.start();<br />
}</em></p>
<p><em>}<br />
else<br />
{<br />
trace(&#8220;External interface is not available for this container.&#8221;);<br />
}</em></p>
<p><em>}</em></p>
<p><em>private function isContainerReady():Boolean<br />
{<br />
var result:Boolean = ExternalInterface.call(&#8220;isReady&#8221;);<br />
return result;<br />
}</em></p>
<p><em>private function setupCallbacks():void<br />
{<br />
ExternalInterface.addCallback(&#8220;callFlexApp&#8221;, callFlexApp);<br />
ExternalInterface.call(&#8220;setSWFIsReady&#8221;);<br />
}</em></p>
<p><em>private function timerHandler(event:TimerEvent):void<br />
{<br />
var isReady:Boolean = isContainerReady();<br />
if (isReady)<br />
{<br />
Timer(event.target).stop();<br />
setupCallbacks();<br />
}</em></p>
<p><em>}<br />
</em></p>
<p><span style="color: #808080;"><em><br />
private function callFlexApp(param1:int, param2:int):void<br />
{<br />
// this function is called from javascript</em></span></p>
<p><span style="color: #808080;"><em> }</em></span></p>
<p><em>}</em></p>
<p><em>}</em></p></blockquote>
<p>That&#8217;s the short description how to set up a communcation between JavaScript and Flex.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/03/07/flex-javascript-communication/" rel="bookmark" title="Flex Javascript communication">Flex Javascript communication </a></li>
<li><a href="/2009/10/29/passing-objects-with-externalinterface-from-js-to-flex/" rel="bookmark" title="Passing objects with ExternalInterface from JS to Flex">Passing objects with ExternalInterface from JS to Flex </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2011/07/28/oop-javascript-accessing-public-methods-in-private-methods/" rel="bookmark" title="OOP JavaScript: Accessing Public Methods in Private Methods">OOP JavaScript: Accessing Public Methods in Private Methods </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/03/09/flex-javascript-communcation-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IE &#038; ExternalInterface communication problem</title>
		<link>/2009/02/09/ie-externalinterface-communication-problem/</link>
		<comments>/2009/02/09/ie-externalinterface-communication-problem/#respond</comments>
		<pubDate>Mon, 09 Feb 2009 11:17:39 +0000</pubDate>
		<dc:creator><![CDATA[stoimen]]></dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex 3]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[communication issue]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">/?p=156</guid>
		<description><![CDATA[Do not use only &#8217;embed&#8217; tag when using Flex 3/Flash Actionscript 3 ExternalInterface. The communcation with only embed tag works with Firefox and no other browser. If you want to put the IE on work add the &#8216;object&#8217; tag as well.<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2009/03/10/stagedisplaystate-full-screen-under-ie/" rel="bookmark" title="StageDisplayState.FULL_SCREEN under IE">StageDisplayState.FULL_SCREEN under IE </a></li>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>Do not use only &#8217;embed&#8217; tag when using Flex 3/Flash Actionscript 3 ExternalInterface. The communcation with only embed tag works with Firefox and no other browser. If you want to put the IE on work add the &#8216;object&#8217; tag as well.</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href="/2009/02/10/ie-6-problem-with-flash-z-index/" rel="bookmark" title="IE 6 problem with flash z-index">IE 6 problem with flash z-index </a></li>
<li><a href="/2009/07/08/externalinterface-from-javascript-to-ie-firefox/" rel="bookmark" title="ExternalInterface from JavaScript to IE/Firefox">ExternalInterface from JavaScript to IE/Firefox </a></li>
<li><a href="/2009/03/10/stagedisplaystate-full-screen-under-ie/" rel="bookmark" title="StageDisplayState.FULL_SCREEN under IE">StageDisplayState.FULL_SCREEN under IE </a></li>
<li><a href="/2010/01/07/object-forget-about-embed-tag/" rel="bookmark" title="OBJECT &#038; &#8230; forget about EMBED tag!">OBJECT &#038; &#8230; forget about EMBED tag! </a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>/2009/02/09/ie-externalinterface-communication-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
