<?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: Browser Window Close Event and Flex Applications</title>
	<atom:link href="http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: james</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-1665</link>
		<dc:creator>james</dc:creator>
		<pubDate>Fri, 24 Jul 2009 08:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-1665</guid>
		<description>For some reason this doesn&#039;t work on IE if I do not return a value. It works perfectly on Firefox though. Here&#039;s my code:
[code]
window.onbeforeunload = callFlex;
function callFlex(){
  MyAppication.myFlexFunction();
}
[/code]</description>
		<content:encoded><![CDATA[<p>For some reason this doesn&#8217;t work on IE if I do not return a value. It works perfectly on Firefox though. Here&#8217;s my code:<br />
[code]<br />
window.onbeforeunload = callFlex;<br />
function callFlex(){<br />
  MyAppication.myFlexFunction();<br />
}<br />
[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micah Johnson</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-1558</link>
		<dc:creator>Micah Johnson</dc:creator>
		<pubDate>Fri, 13 Mar 2009 05:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-1558</guid>
		<description>What a great and simple solution, it was exactly what we were hoping for.  Thanks for sharing!</description>
		<content:encoded><![CDATA[<p>What a great and simple solution, it was exactly what we were hoping for.  Thanks for sharing!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei Ionescu</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-1037</link>
		<dc:creator>Andrei Ionescu</dc:creator>
		<pubDate>Fri, 02 Jan 2009 10:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-1037</guid>
		<description>Hello Evan! Happy New Year! I don&#039;t have a mac (yet) so I didn&#039;t tested it on mac. You may be right. The event may be triggered only on win platform. Regarding the win platform I am sure that is working only on FF and IE. You can try using the &lt;b&gt;onunload&lt;/b&gt; (not onbeforeunload) event of IE browser (if you can install it on mac).</description>
		<content:encoded><![CDATA[<p>Hello Evan! Happy New Year! I don&#8217;t have a mac (yet) so I didn&#8217;t tested it on mac. You may be right. The event may be triggered only on win platform. Regarding the win platform I am sure that is working only on FF and IE. You can try using the <b>onunload</b> (not onbeforeunload) event of IE browser (if you can install it on mac).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-1036</link>
		<dc:creator>Evan</dc:creator>
		<pubDate>Fri, 02 Jan 2009 06:11:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-1036</guid>
		<description>This event doesn&#039;t seem to be fired on the mac platform, for firefox or safari.  I&#039;ve been trying desperately to find a hook to clean-up the app on exit.  I suppose Adobe figured that removing the application is sufficient, but it&#039;s not when the app connects to a stateful back end.</description>
		<content:encoded><![CDATA[<p>This event doesn&#8217;t seem to be fired on the mac platform, for firefox or safari.  I&#8217;ve been trying desperately to find a hook to clean-up the app on exit.  I suppose Adobe figured that removing the application is sufficient, but it&#8217;s not when the app connects to a stateful back end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Throop</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-1005</link>
		<dc:creator>Ben Throop</dc:creator>
		<pubDate>Thu, 18 Dec 2008 15:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-1005</guid>
		<description>Hey thanks for this! Hooked it up and it works great.</description>
		<content:encoded><![CDATA[<p>Hey thanks for this! Hooked it up and it works great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sulabh Shukla</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-811</link>
		<dc:creator>Sulabh Shukla</dc:creator>
		<pubDate>Wed, 24 Sep 2008 21:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-811</guid>
		<description>the onbeforeunload event used in the javascript above is fired not only when the browser window is closed but also when the page is refreshed (annoying!). I couldnt find a good solution on the web which distinguished a browser close from a refresh event.</description>
		<content:encoded><![CDATA[<p>the onbeforeunload event used in the javascript above is fired not only when the browser window is closed but also when the page is refreshed (annoying!). I couldnt find a good solution on the web which distinguished a browser close from a refresh event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: csham</title>
		<link>http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/comment-page-1/#comment-574</link>
		<dc:creator>csham</dc:creator>
		<pubDate>Mon, 04 Aug 2008 23:04:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/25/browser-window-close-event-and-flex-applications/#comment-574</guid>
		<description>This, however, does not address navigation from within the Flex app. Any mechanism to perform similar &quot;gate keeping&quot; function prior to removeChild() is executed and, for example, the view stack is swapped.</description>
		<content:encoded><![CDATA[<p>This, however, does not address navigation from within the Flex app. Any mechanism to perform similar &#8220;gate keeping&#8221; function prior to removeChild() is executed and, for example, the view stack is swapped.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

