<?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: Checking to see if the ExternalInterface API is available in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Mon, 13 Feb 2012 01:38:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Krankenversicherung</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-9220</link>
		<dc:creator>Krankenversicherung</dc:creator>
		<pubDate>Fri, 13 May 2011 07:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-9220</guid>
		<description>Danke für den sehr hielfreichen Code.</description>
		<content:encoded><![CDATA[<p>Danke für den sehr hielfreichen Code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Apotheke</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-5951</link>
		<dc:creator>Apotheke</dc:creator>
		<pubDate>Wed, 07 Oct 2009 13:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-5951</guid>
		<description>Thanks for the code.  I had to adapt it to my problem, but now it works.</description>
		<content:encoded><![CDATA[<p>Thanks for the code.  I had to adapt it to my problem, but now it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rene Weller</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2837</link>
		<dc:creator>Rene Weller</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2837</guid>
		<description>worked for me!</description>
		<content:encoded><![CDATA[<p>worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: VERSANDAPOTHEKE</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2842</link>
		<dc:creator>VERSANDAPOTHEKE</dc:creator>
		<pubDate>Fri, 11 Jul 2008 02:25:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2842</guid>
		<description>Seems to be working fine.  Looks pretty easy to work with.</description>
		<content:encoded><![CDATA[<p>Seems to be working fine.  Looks pretty easy to work with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pagerank</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2841</link>
		<dc:creator>Pagerank</dc:creator>
		<pubDate>Fri, 06 Jun 2008 03:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2841</guid>
		<description>Popup worked, thanks for sharing the information :-)</description>
		<content:encoded><![CDATA[<p>Popup worked, thanks for sharing the information :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2840</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 11 Mar 2008 22:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2840</guid>
		<description>OK, I was thinking of this problem over lunch and think I have two possibilities:
1) In your HTML template (/html-template/index.template.html), pass a variable &quot;jsEnabled&quot; using FlashVars in the &lt;noscript /&gt; block. Then, in your Flex application, check for the existance of the jsEnabled variable in Application.application.parameters. If it exists, the &lt;noscript /&gt; block embedded the SWF and the user&#039;s JavaScript is disabled.
2) In your Flex app, try calling ExternalInterface.call(&quot;Date&quot;). If JavaScript is enabled and ExternalInterface is working, you should get the current date/time from JavaScript. If JavaScript is disabled or ExternalInterface is not available, you should get &quot;null&quot; back.

I&#039;ll do a bit more testing after work tonight and update the entry.

Sorry again for the confusion,
Peter</description>
		<content:encoded><![CDATA[<p>OK, I was thinking of this problem over lunch and think I have two possibilities:<br />
1) In your HTML template (/html-template/index.template.html), pass a variable &#8220;jsEnabled&#8221; using FlashVars in the &lt;noscript /&gt; block. Then, in your Flex application, check for the existance of the jsEnabled variable in Application.application.parameters. If it exists, the &lt;noscript /&gt; block embedded the SWF and the user&#8217;s JavaScript is disabled.<br />
2) In your Flex app, try calling ExternalInterface.call(&#8220;Date&#8221;). If JavaScript is enabled and ExternalInterface is working, you should get the current date/time from JavaScript. If JavaScript is disabled or ExternalInterface is not available, you should get &#8220;null&#8221; back.</p>
<p>I&#8217;ll do a bit more testing after work tonight and update the entry.</p>
<p>Sorry again for the confusion,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2839</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Tue, 11 Mar 2008 15:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2839</guid>
		<description>Klaus,

As it turns out, I was unclear/confused on what the ExternalInterface.available property actually does.

From the docs:
&lt;blockquote&gt;Note: The &lt;code&gt;ExternalInterface.available&lt;/code&gt; property reports whether the current container is a type that supports ExternalInterface connectivity. It will not tell you if JavaScript is enabled in the current browser.&lt;/blockquote&gt;

I&#039;ll try and update the entry later today and find a better solution (since as you point out, the Flex Alert is pretty much impossible). :)

Peter</description>
		<content:encoded><![CDATA[<p>Klaus,</p>
<p>As it turns out, I was unclear/confused on what the ExternalInterface.available property actually does.</p>
<p>From the docs:</p>
<blockquote><p>Note: The <code>ExternalInterface.available</code> property reports whether the current container is a type that supports ExternalInterface connectivity. It will not tell you if JavaScript is enabled in the current browser.</p></blockquote>
<p>I&#8217;ll try and update the entry later today and find a better solution (since as you point out, the Flex Alert is pretty much impossible). :)</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Klaus Busse</title>
		<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/comment-page-1/#comment-2838</link>
		<dc:creator>Klaus Busse</dc:creator>
		<pubDate>Tue, 11 Mar 2008 10:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-2838</guid>
		<description>Mmmh, disabling Javascript should disable the external interface, right?

However, if I do so, I don&#039;t get the Flex Alert. Of course I also don&#039;t get the Javascript alert, too. Have I got this wrong or is there an issue with the example?

Thanks!

Klaus</description>
		<content:encoded><![CDATA[<p>Mmmh, disabling Javascript should disable the external interface, right?</p>
<p>However, if I do so, I don&#8217;t get the Flex Alert. Of course I also don&#8217;t get the Javascript alert, too. Have I got this wrong or is there an issue with the example?</p>
<p>Thanks!</p>
<p>Klaus</p>
]]></content:encoded>
	</item>
</channel>
</rss>

