<?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: #8 Flex Hack &#8211; Detecting if a user is on-line or off-line in Flex without server-side tricks</title>
	<atom:link href="http://www.igorcosta.org/index.php?feed=rss2&#038;p=222" rel="self" type="application/rss+xml" />
	<link>http://www.igorcosta.org/?p=222</link>
	<description>Views from a Developer with focus on RIA and Desktop 2.0</description>
	<lastBuildDate>Thu, 17 Jun 2010 09:56:38 -0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jon Williams</title>
		<link>http://www.igorcosta.org/?p=222&#038;cpage=1#comment-86670</link>
		<dc:creator>Jon Williams</dc:creator>
		<pubDate>Wed, 27 Jan 2010 18:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.igorcosta.org/?p=222#comment-86670</guid>
		<description>View source on the browser -- that pretty code box is fouling the source code :(</description>
		<content:encoded><![CDATA[<p>View source on the browser &#8212; that pretty code box is fouling the source code :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Al</title>
		<link>http://www.igorcosta.org/?p=222&#038;cpage=1#comment-59032</link>
		<dc:creator>Al</dc:creator>
		<pubDate>Wed, 14 Jan 2009 09:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.igorcosta.org/?p=222#comment-59032</guid>
		<description>Sorry, but is some code missing?   There seems to be an empty  block with nothing in and a call to checkStatus in the button click.

Perhaps I&#039;m missing something but I&#039;m not sure that&#039;d work?</description>
		<content:encoded><![CDATA[<p>Sorry, but is some code missing?   There seems to be an empty  block with nothing in and a call to checkStatus in the button click.</p>
<p>Perhaps I&#8217;m missing something but I&#8217;m not sure that&#8217;d work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james lei</title>
		<link>http://www.igorcosta.org/?p=222&#038;cpage=1#comment-58979</link>
		<dc:creator>james lei</dc:creator>
		<pubDate>Tue, 13 Jan 2009 13:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.igorcosta.org/?p=222#comment-58979</guid>
		<description>Most blog would remove the arrow symbol, here the code to fill in the above post.

MXML:
(small than) mx:RemoteObject id=&quot;myservice&quot; fault=&quot;offlineHandler(event)&quot; source=&quot;getConnect&quot; destination=&quot;amfphp&quot;/ (greater than)</description>
		<content:encoded><![CDATA[<p>Most blog would remove the arrow symbol, here the code to fill in the above post.</p>
<p>MXML:<br />
(small than) mx:RemoteObject id=&#8221;myservice&#8221; fault=&#8221;offlineHandler(event)&#8221; source=&#8221;getConnect&#8221; destination=&#8221;amfphp&#8221;/ (greater than)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james lei</title>
		<link>http://www.igorcosta.org/?p=222&#038;cpage=1#comment-58978</link>
		<dc:creator>james lei</dc:creator>
		<pubDate>Tue, 13 Jan 2009 13:17:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.igorcosta.org/?p=222#comment-58978</guid>
		<description>There is another way to define offline connection status using RemoteObject with alert prompt on fault. This is useful when the network suddenly down and the user trying to submit data online:

MXML:


AS3:
//Use this for every new connection, if send fail, throw error alert.
myservice.getOperation(&#039;getConnect&#039;).send();

private function offlineHandler():void{
Alert.show(&#039;Service offline.&#039;, &#039;Service Error:&#039;);
}

you will need to create services-config.xml for the destination. It is a bit over complex but useful when use with AMFPHP.</description>
		<content:encoded><![CDATA[<p>There is another way to define offline connection status using RemoteObject with alert prompt on fault. This is useful when the network suddenly down and the user trying to submit data online:</p>
<p>MXML:</p>
<p>AS3:<br />
//Use this for every new connection, if send fail, throw error alert.<br />
myservice.getOperation(&#8217;getConnect&#8217;).send();</p>
<p>private function offlineHandler():void{<br />
Alert.show(&#8217;Service offline.&#8217;, &#8216;Service Error:&#8217;);<br />
}</p>
<p>you will need to create services-config.xml for the destination. It is a bit over complex but useful when use with AMFPHP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
