<?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: Detecting when a mouse leaves a Flex application</title>
	<atom:link href="http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 14:19:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: denny</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-10089</link>
		<dc:creator>denny</dc:creator>
		<pubDate>Tue, 25 Oct 2011 02:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-10089</guid>
		<description>Marcio,
What use sdk version of flex?
I had completed to test on sdk version 3.6 in flex4</description>
		<content:encoded><![CDATA[<p>Marcio,<br />
What use sdk version of flex?<br />
I had completed to test on sdk version 3.6 in flex4</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-7914</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 14 Jun 2010 22:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-7914</guid>
		<description>Peter - I cut and paste your code to try in AIR to trigger a state change - it successfully changes from initial state to isMouseInSWF state but does not change back on exit. Any ideas?

thanks, Max</description>
		<content:encoded><![CDATA[<p>Peter &#8211; I cut and paste your code to try in AIR to trigger a state change &#8211; it successfully changes from initial state to isMouseInSWF state but does not change back on exit. Any ideas?</p>
<p>thanks, Max</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varun Rathore</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-7435</link>
		<dc:creator>Varun Rathore</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-7435</guid>
		<description>It should be 
&lt;pre lang=&quot;actionscript3&quot;&gt;
systemManager.stage.addEventListener(Event.MOUSE_LEAVE, stage_mouseLeave);
&lt;/pre&gt;

vrathore.blogspot.com</description>
		<content:encoded><![CDATA[<p>It should be</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">systemManager<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MOUSE_LEAVE</span><span style="color: #000066; font-weight: bold;">,</span> stage_mouseLeave<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>vrathore.blogspot.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Hardin</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-6793</link>
		<dc:creator>Larry Hardin</dc:creator>
		<pubDate>Mon, 18 Jan 2010 18:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-6793</guid>
		<description>Hello Everyone,

 I have ran into issues with using this. For example, the mouse leave event is dispatched when a context menu is displayed via right click.  So, if  you are in the center of the stage and right click, the mouse leaves the stage. So, I modified this example by adding a &quot;mouse border&quot; around the stage and I check to see if the mouse is within the border before it leaves the stage.

 I hope that this helps....
var mouseOutOnX:Boolean = ( mouseX  (stage.width - 10));
   		var mouseOutOnY:Boolean = ( mouseY  (stage.height - 10));
   		if ( ( mouseOutOnX &#124;&#124;  mouseOutOnY) )
   		{	
.......</description>
		<content:encoded><![CDATA[<p>Hello Everyone,</p>
<p> I have ran into issues with using this. For example, the mouse leave event is dispatched when a context menu is displayed via right click.  So, if  you are in the center of the stage and right click, the mouse leaves the stage. So, I modified this example by adding a &#8220;mouse border&#8221; around the stage and I check to see if the mouse is within the border before it leaves the stage.</p>
<p> I hope that this helps&#8230;.<br />
var mouseOutOnX:Boolean = ( mouseX  (stage.width &#8211; 10));<br />
   		var mouseOutOnY:Boolean = ( mouseY  (stage.height &#8211; 10));<br />
   		if ( ( mouseOutOnX ||  mouseOutOnY) )<br />
   		{<br />
&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hardy</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-5961</link>
		<dc:creator>Aaron Hardy</dc:creator>
		<pubDate>Thu, 08 Oct 2009 17:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-5961</guid>
		<description>Likewise, it seems that this is limited if you alt+tab to a different window while your mouse is done.  It seems as though since the browser is no longer the active window when the mouse up occurs it can&#039;t detect it and therefore no MOUSE_LEAVE event is dispatched.</description>
		<content:encoded><![CDATA[<p>Likewise, it seems that this is limited if you alt+tab to a different window while your mouse is done.  It seems as though since the browser is no longer the active window when the mouse up occurs it can&#8217;t detect it and therefore no MOUSE_LEAVE event is dispatched.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alastair</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-2607</link>
		<dc:creator>Alastair</dc:creator>
		<pubDate>Thu, 27 Nov 2008 00:11:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-2607</guid>
		<description>A similar error to the one Kristian documented happens if you have &#039;wmode&#039; set to &#039;transparent&#039;, if you leave the stage with the mouse pressed and release outside the event won&#039;t fire, then when you enter the stage again the slider thumb is stuck to the mouse, and when you release you get an error.

wmode set to transparent has 20+ errors associated with it, avoid it at all costs :) (it&#039;s sometimes unavoidable)</description>
		<content:encoded><![CDATA[<p>A similar error to the one Kristian documented happens if you have &#8216;wmode&#8217; set to &#8216;transparent&#8217;, if you leave the stage with the mouse pressed and release outside the event won&#8217;t fire, then when you enter the stage again the slider thumb is stuck to the mouse, and when you release you get an error.</p>
<p>wmode set to transparent has 20+ errors associated with it, avoid it at all costs :) (it&#8217;s sometimes unavoidable)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-2608</link>
		<dc:creator>Kristian</dc:creator>
		<pubDate>Thu, 09 Oct 2008 09:13:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-2608</guid>
		<description>Hi Peter.

I&#039;ve logged the bug under the Flash Player, as it also happens with Flash CS3, so it&#039;s not limited to Flex.

Bug number is &lt;a href=&quot;https://bugs.adobe.com/jira/browse/FP-733&quot; rel=&quot;nofollow&quot;&gt;&lt;u&gt;FP-733&lt;/u&gt;&lt;/a&gt;.

Cheers,
Kristian.</description>
		<content:encoded><![CDATA[<p>Hi Peter.</p>
<p>I&#8217;ve logged the bug under the Flash Player, as it also happens with Flash CS3, so it&#8217;s not limited to Flex.</p>
<p>Bug number is <a href="https://bugs.adobe.com/jira/browse/FP-733" rel="nofollow"><u>FP-733</u></a>.</p>
<p>Cheers,<br />
Kristian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-2609</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Wed, 08 Oct 2008 15:49:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-2609</guid>
		<description>Kristian,

Can you please file a bug at http://bugs.adobe.com/flex/ and include a simple test case, if possible. That may be a bug with the Flex Slider control or possibly Flash Player.

Peter
PS: If you can also post the bug number here, a few of us can vote/subscribe to the issue also.</description>
		<content:encoded><![CDATA[<p>Kristian,</p>
<p>Can you please file a bug at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and include a simple test case, if possible. That may be a bug with the Flex Slider control or possibly Flash Player.</p>
<p>Peter<br />
PS: If you can also post the bug number here, a few of us can vote/subscribe to the issue also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-2610</link>
		<dc:creator>Kristian</dc:creator>
		<pubDate>Wed, 08 Oct 2008 15:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-2610</guid>
		<description>Great example, but it does have limitations.

When adding a slider, if you hold the slider thumb down then keep the mouse button pressed and move off the stage, it fires when you release the mouse button.

However, if the swf is in a table, and you do the same, the event never fires!</description>
		<content:encoded><![CDATA[<p>Great example, but it does have limitations.</p>
<p>When adding a slider, if you hold the slider thumb down then keep the mouse button pressed and move off the stage, it fires when you release the mouse button.</p>
<p>However, if the swf is in a table, and you do the same, the event never fires!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Russ</title>
		<link>http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/comment-page-1/#comment-2606</link>
		<dc:creator>Russ</dc:creator>
		<pubDate>Mon, 19 May 2008 17:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/02/22/detecting-when-a-mouse-leaves-a-flex-application/#comment-2606</guid>
		<description>I&#039;ve noticed that when you interact with the browser outside the flash movie, that funkiness happens inside the movie.

e.g. Highlight the view source line</description>
		<content:encoded><![CDATA[<p>I&#8217;ve noticed that when you interact with the browser outside the flash movie, that funkiness happens inside the movie.</p>
<p>e.g. Highlight the view source line</p>
]]></content:encoded>
	</item>
</channel>
</rss>

