<?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: AIR, Flex, LocalConnection and the mystery StatusEvent</title> <atom:link href="http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/feed/" rel="self" type="application/rss+xml" /><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/</link> <description>My ideas on the web and mobile application/game technologies</description> <lastBuildDate>Sat, 27 Jun 2015 02:02:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>By: Keith H</title><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/#comment-485339</link> <dc:creator>Keith H</dc:creator> <pubDate>Wed, 25 Feb 2009 16:13:40 +0000</pubDate> <guid isPermaLink="false">http://renaun.com/blog/2007/07/21/226/#comment-485339</guid> <description><![CDATA[Thanks the allowDomain method was the solution to my &quot;AIR security gotcha&quot; when dealing with a LocalConnection.]]></description> <content:encoded><![CDATA[<p>Thanks the allowDomain method was the solution to my &#8220;AIR security gotcha&#8221; when dealing with a LocalConnection.</p> ]]></content:encoded> </item> <item><title>By: Paul Gregoire</title><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/#comment-485299</link> <dc:creator>Paul Gregoire</dc:creator> <pubDate>Fri, 23 Jan 2009 20:26:14 +0000</pubDate> <guid isPermaLink="false">http://renaun.com/blog/2007/07/21/226/#comment-485299</guid> <description><![CDATA[Renaun, I have expanded upon this issue because it happened to me under different conditions. http://gregoire.org/2009/01/23/the-dreaded-2044-error/]]></description> <content:encoded><![CDATA[<p>Renaun, I have expanded upon this issue because it happened to me under different conditions.<br /> <a href="http://gregoire.org/2009/01/23/the-dreaded-2044-error/" rel="nofollow">http://gregoire.org/2009/01/23/the-dreaded-2044-error/</a></p> ]]></content:encoded> </item> <item><title>By: Paul Gregoire&#8217;s Blog &#187; Blog Archive &#187; The dreaded 2044 error</title><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/#comment-485298</link> <dc:creator>Paul Gregoire&#8217;s Blog &#187; Blog Archive &#187; The dreaded 2044 error</dc:creator> <pubDate>Fri, 23 Jan 2009 20:24:25 +0000</pubDate> <guid isPermaLink="false">http://renaun.com/blog/2007/07/21/226/#comment-485298</guid> <description><![CDATA[[...] http://renaun.com/blog/2007/07/21/226/ [...]]]></description> <content:encoded><![CDATA[<p>[...] <a href="http://renaun.com/blog/2007/07/21/226/" rel="nofollow">http://renaun.com/blog/2007/07/21/226/</a> [...]</p> ]]></content:encoded> </item> <item><title>By: Sidney de Koning</title><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/#comment-472264</link> <dc:creator>Sidney de Koning</dc:creator> <pubDate>Wed, 12 Nov 2008 19:23:01 +0000</pubDate> <guid isPermaLink="false">http://renaun.com/blog/2007/07/21/226/#comment-472264</guid> <description><![CDATA[Hi,I dont know if you already solved this problem correctly, but there is a sollution. This error probably always happends if you have not yet started your application but already start sending messages to it right? It also sounds like you are building a logger of some sort. (if not, you can use the same approach) What you can do it this. Create a private var called _canSend and _hasListeners (default them both to false), create getters and setters for _canSend, then in the function you use to send over the localconnection, check if(!_hasListeners) and you add the listener for the StatusEvent. In the event handler just trace out something. Like this:&lt;code&gt; private static var _hasListeners:Boolean = false; private static var _isLogging:Boolean = true;public function get isLogging():Boolean { return _isLogging; } public function set isLogging(value:Boolean):void { _isLogging = value; } &lt;/code&gt; and then the actual sending like so; &lt;code&gt; public static function send(pInput:*, level:String):void { if(!_hasListeners) { LOCAL_CONNECTION.addEventListener(StatusEvent.STATUS, onStatusHandler); } if(_isLogging) { LOCAL_CONNECTION.send( LOCAL_CONNECTION_NAME , OUTPUT_METHOD , pInput.toString( ) , level ); } } &lt;/code&gt; Because now you catch the event and you dont have to have you application open first before you start sending. I hope this works for you,Happy coding :)Sid]]></description> <content:encoded><![CDATA[<p>Hi,</p><p>I dont know if you already solved this problem correctly, but there is a sollution.<br /> This error probably always happends if you have not yet started your application but already start sending messages to it right?<br /> It also sounds like you are building a logger of some sort. (if not, you can use the same approach)<br /> What you can do it this. Create a private var called _canSend and _hasListeners (default them both to false), create getters and setters for _canSend, then in the function you use to send over the localconnection, check if(!_hasListeners) and you add the listener for the StatusEvent. In the event handler just trace out something. Like this:</p><p><code><br /> private static var _hasListeners:Boolean = false;<br /> private static var _isLogging:Boolean = true;</p><p>public function get isLogging():Boolean {<br /> return _isLogging;<br /> }<br /> public function set isLogging(value:Boolean):void {<br /> _isLogging = value;<br /> }<br /> </code><br /> and then the actual sending like so;<br /> <code><br /> public static function send(pInput:*, level:String):void {</p><p>if(!_hasListeners) {<br /> LOCAL_CONNECTION.addEventListener(StatusEvent.STATUS, onStatusHandler);<br /> }<br /> if(_isLogging) {<br /> LOCAL_CONNECTION.send( LOCAL_CONNECTION_NAME , OUTPUT_METHOD , pInput.toString( ) , level );<br /> }<br /> }<br /> </code><br /> Because now you catch the event and you dont have to have you application open first before you start sending.<br /> I hope this works for you,</p><p>Happy coding :)</p><p>Sid</p> ]]></content:encoded> </item> <item><title>By: Shanimal</title><link>http://renaun.com/blog/2007/07/air-flex-localconnection-and-the-mystery-statusevent/#comment-443241</link> <dc:creator>Shanimal</dc:creator> <pubDate>Thu, 28 Aug 2008 22:40:54 +0000</pubDate> <guid isPermaLink="false">http://renaun.com/blog/2007/07/21/226/#comment-443241</guid> <description><![CDATA[Seeing in AS3 app for FB, having crossdomain issue onfbjs-bridge. Note that this works in FireFox (FAIL only in IE)]]></description> <content:encoded><![CDATA[<p>Seeing in AS3 app for FB, having crossdomain issue onfbjs-bridge. Note that this works in FireFox (FAIL only in IE)</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/3 queries in 0.002 seconds using disk: basic
Object Caching 370/370 objects using disk: basic

 Served from: renaun.com @ 2026-06-11 18:08:12 by W3 Total Cache -->