<?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: Determining if a Flex application has focus using the activate and deactivate events</title>
	<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Fri, 21 Nov 2008 07:08:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Michael Eakes</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-15779</link>
		<author>Michael Eakes</author>
		<pubDate>Sun, 21 Sep 2008 22:00:04 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-15779</guid>
		<description>Great test.  Do you know of any way to force the flex app to "activate" (so that this event will be fired and keyboard focus enabled) without the user having to click on the application?</description>
		<content:encoded><![CDATA[<p>Great test.  Do you know of any way to force the flex app to &#8220;activate&#8221; (so that this event will be fired and keyboard focus enabled) without the user having to click on the application?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7258</link>
		<author>Gustavo</author>
		<pubDate>Sat, 01 Mar 2008 04:15:55 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7258</guid>
		<description>Thank you very very much.

I'm new to computer programming as my focus is design.

Thanks to you now I know how I can probably set the languages automatically.


The screen broadcast is very important to me. 

Do you know how this can be set to true? (because I don't want to install a program just to simulate a camera that broadcasts my screen).

And if it's not asking too much: what would be the approach for using this with FMS. 
You can forget about this one if you don't know :)

Thanks again and hope helping you one day,

Gustavo</description>
		<content:encoded><![CDATA[<p>Thank you very very much.</p>
<p>I&#8217;m new to computer programming as my focus is design.</p>
<p>Thanks to you now I know how I can probably set the languages automatically.</p>
<p>The screen broadcast is very important to me. </p>
<p>Do you know how this can be set to true? (because I don&#8217;t want to install a program just to simulate a camera that broadcasts my screen).</p>
<p>And if it&#8217;s not asking too much: what would be the approach for using this with FMS.<br />
You can forget about this one if you don&#8217;t know :)</p>
<p>Thanks again and hope helping you one day,</p>
<p>Gustavo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7256</link>
		<author>peterd</author>
		<pubDate>Sat, 01 Mar 2008 02:53:14 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7256</guid>
		<description>Gustavo,

My &lt;code&gt;Capabilities.hasScreenBroadcast&lt;/code&gt; property is false also. According to the documentation (&lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#hasScreenBroadcast" rel="nofollow"&gt;link&lt;/a&gt;), the &lt;code&gt;hasScreenBroadcast&lt;/code&gt; property:

&lt;blockquote&gt;
Specifies whether the system does (true) or does not (false) support the development of screen broadcast applications to be run through Flash Media Server.
&lt;/blockquote&gt;

As for the languages, the code in the About You page just uses the &lt;code&gt;Capabilities.language&lt;/code&gt; property (which returns "en" on my system).
&lt;pre class="code"&gt;
trace(Capabilities.language); // en
&lt;/pre&gt;

I imagine it should be pretty easy to use a switch statement on the &lt;code&gt;Capabilities.language&lt;/code&gt; property and load the appropriate language XML file (just make sure you set up a default block in case a user is using a language you don't have an XML file for. For more information on the language property, see &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#language" rel="nofollow"&gt;http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#language&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Gustavo,</p>
<p>My <code>Capabilities.hasScreenBroadcast</code> property is false also. According to the documentation (<a href="http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#hasScreenBroadcast" rel="nofollow">link</a>), the <code>hasScreenBroadcast</code> property:</p>
<blockquote><p>
Specifies whether the system does (true) or does not (false) support the development of screen broadcast applications to be run through Flash Media Server.
</p></blockquote>
<p>As for the languages, the code in the About You page just uses the <code>Capabilities.language</code> property (which returns &#8220;en&#8221; on my system).</p>
<pre class="code">
trace(Capabilities.language); // en
</pre>
<p>I imagine it should be pretty easy to use a switch statement on the <code>Capabilities.language</code> property and load the appropriate language XML file (just make sure you set up a default block in case a user is using a language you don&#8217;t have an XML file for. For more information on the language property, see <a href="http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#language" rel="nofollow">http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#language</a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gustavo</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7255</link>
		<author>Gustavo</author>
		<pubDate>Sat, 01 Mar 2008 02:15:53 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7255</guid>
		<description>Peter, 
thanks for the previous reply.

I've tried the "about-you" and noticed the "hasScreenBroadcast". (mine is set to false)
What is that? Can I broadcast my screen like using FMS without instaling a third-party program?

And I have an application that uses languages in an external .xml file.

How can I detect autmaticaly the language (like you did in the about-you) and load the respective .xml language file. (Now the users have to choose in each login using a ComboBox).

I think it would be something like: if language is pt, we load the portugues.xml and so on...

Thank you very much for your attention and this blog that I read every day,

Gustavo</description>
		<content:encoded><![CDATA[<p>Peter,<br />
thanks for the previous reply.</p>
<p>I&#8217;ve tried the &#8220;about-you&#8221; and noticed the &#8220;hasScreenBroadcast&#8221;. (mine is set to false)<br />
What is that? Can I broadcast my screen like using FMS without instaling a third-party program?</p>
<p>And I have an application that uses languages in an external .xml file.</p>
<p>How can I detect autmaticaly the language (like you did in the about-you) and load the respective .xml language file. (Now the users have to choose in each login using a ComboBox).</p>
<p>I think it would be something like: if language is pt, we load the portugues.xml and so on&#8230;</p>
<p>Thank you very much for your attention and this blog that I read every day,</p>
<p>Gustavo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7247</link>
		<author>peterd</author>
		<pubDate>Fri, 29 Feb 2008 22:29:21 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7247</guid>
		<description>Glendon,

It seems to work on my Mac with the latest Safari.
What version of Flash Player are you using in Safari? http://blog.flexexamples.com/about-you/

Peter</description>
		<content:encoded><![CDATA[<p>Glendon,</p>
<p>It seems to work on my Mac with the latest Safari.<br />
What version of Flash Player are you using in Safari? <a href="http://blog.flexexamples.com/about-you/" rel="nofollow">http://blog.flexexamples.com/about-you/</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glendon</title>
		<link>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7239</link>
		<author>Glendon</author>
		<pubDate>Fri, 29 Feb 2008 17:19:57 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/29/determining-if-a-flex-application-has-focus-using-the-activate-and-deactivate-events/#comment-7239</guid>
		<description>This doesn't work in safari 3 on a mac the way it's supposed to. The browser doesn't know when the OS regains focus. It works on Firefox on a mac though. So if you are going to have an important feature in your app. using this feature beware.</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work in safari 3 on a mac the way it&#8217;s supposed to. The browser doesn&#8217;t know when the OS regains focus. It works on Firefox on a mac though. So if you are going to have an important feature in your app. using this feature beware.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
