<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Checking to see if the ExternalInterface API is available in Flex</title>
	<link>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 05 Dec 2008 00:17:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<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-14094</link>
		<author>Rene Weller</author>
		<pubDate>Fri, 11 Jul 2008 13:54:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-14094</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-14085</link>
		<author>VERSANDAPOTHEKE</author>
		<pubDate>Fri, 11 Jul 2008 02:25:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-14085</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-13247</link>
		<author>Pagerank</author>
		<pubDate>Fri, 06 Jun 2008 03:20:57 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-13247</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-7511</link>
		<author>peterd</author>
		<pubDate>Tue, 11 Mar 2008 22:17:26 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-7511</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 "jsEnabled" using FlashVars in the &#60;noscript /&#62; block. Then, in your Flex application, check for the existance of the jsEnabled variable in Application.application.parameters. If it exists, the &#60;noscript /&#62; block embedded the SWF and the user's JavaScript is disabled.
2) In your Flex app, try calling ExternalInterface.call("Date"). 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 "null" back.

I'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(&#8221;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-7498</link>
		<author>peterd</author>
		<pubDate>Tue, 11 Mar 2008 15:42:01 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-7498</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'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-7489</link>
		<author>Klaus Busse</author>
		<pubDate>Tue, 11 Mar 2008 10:36:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/03/10/checking-to-see-if-the-externalinterface-api-is-available-in-flex/#comment-7489</guid>
		<description>Mmmh, disabling Javascript should disable the external interface, right?

However, if I do so, I don't get the Flex Alert. Of course I also don'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>
