<?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: Sending data with LocalConnection in Flash</title>
	<atom:link href="http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/</link>
	<description>Development and Design in Flash and Actionscript</description>
	<lastBuildDate>Mon, 25 Jan 2010 00:12:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mark</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-2995</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 19 Dec 2009 16:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-2995</guid>
		<description>The example doesn&#039;t seem to work with Safari 4 / Flash Player 10...</description>
		<content:encoded><![CDATA[<p>The example doesn&#8217;t seem to work with Safari 4 / Flash Player 10&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-2489</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Tue, 20 Oct 2009 03:53:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-2489</guid>
		<description>Local connection does not work at all FF 3.5.3 Mac. At least not for me.</description>
		<content:encoded><![CDATA[<p>Local connection does not work at all FF 3.5.3 Mac. At least not for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-2286</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Mon, 28 Sep 2009 16:51:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-2286</guid>
		<description>This example doesn&#039;t seem to be working in FF 3.5.3 on the Mac.</description>
		<content:encoded><![CDATA[<p>This example doesn&#8217;t seem to be working in FF 3.5.3 on the Mac.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manfer</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-2253</link>
		<dc:creator>manfer</dc:creator>
		<pubDate>Fri, 25 Sep 2009 10:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-2253</guid>
		<description>This would be very nice method to pass data between swfs if it were working properly but it is not.

Open two browser, or two windows of the same browser, or to tabs of same browser or whatever. Then, load there a page with this type of communication between two swf files. And look where the second loaded instance of the page sends the messages. BOTCH.

It seems it is the way they decided to do it. The receiver string identifier must be something that is registered by the adobe player so other swfs can recognize it. But that makes it very very very easy to collide with another localconnections receivers of other swfs (probably many many people would set that string to &quot;connection&quot;, &quot;myconnection&quot;, &quot;conn&quot;...). Then lets look which one receives the messages and from where. Of course there is the domain limitation but even on same domain that can collide.

You can just test with this page. Open it on two tabs of your browser and then click and throw the ball on the second tab. What happens? And as I mention it is not only on same browser if you load page on two different browsers it is the same. This is an example of collision on same domain.

And other example of collision. If I use this on a banner that is shown on all pages of a site if a user opens in its browser two pages of that site (even not same page, just to pages of my site) the second page flash sender would send messages to the first page receiver. That makes no sense at all.

I even tried to use it on a project where the send is almost at the begining of the swf and as soon as the message is received I close the connection and even destroy it (in this project was no more needed). But even that simple one that almost works, fails sometimes. It seems the message is not always sent, or it is delayed by other player tasks, I dont know exactly whats happening but fails. So even that simple one is not 100% working.

I prefer sender to javascript, javascript to receiver that works as it is expected.</description>
		<content:encoded><![CDATA[<p>This would be very nice method to pass data between swfs if it were working properly but it is not.</p>
<p>Open two browser, or two windows of the same browser, or to tabs of same browser or whatever. Then, load there a page with this type of communication between two swf files. And look where the second loaded instance of the page sends the messages. BOTCH.</p>
<p>It seems it is the way they decided to do it. The receiver string identifier must be something that is registered by the adobe player so other swfs can recognize it. But that makes it very very very easy to collide with another localconnections receivers of other swfs (probably many many people would set that string to &#8220;connection&#8221;, &#8220;myconnection&#8221;, &#8220;conn&#8221;&#8230;). Then lets look which one receives the messages and from where. Of course there is the domain limitation but even on same domain that can collide.</p>
<p>You can just test with this page. Open it on two tabs of your browser and then click and throw the ball on the second tab. What happens? And as I mention it is not only on same browser if you load page on two different browsers it is the same. This is an example of collision on same domain.</p>
<p>And other example of collision. If I use this on a banner that is shown on all pages of a site if a user opens in its browser two pages of that site (even not same page, just to pages of my site) the second page flash sender would send messages to the first page receiver. That makes no sense at all.</p>
<p>I even tried to use it on a project where the send is almost at the begining of the swf and as soon as the message is received I close the connection and even destroy it (in this project was no more needed). But even that simple one that almost works, fails sometimes. It seems the message is not always sent, or it is delayed by other player tasks, I dont know exactly whats happening but fails. So even that simple one is not 100% working.</p>
<p>I prefer sender to javascript, javascript to receiver that works as it is expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanjukta Samom</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1911</link>
		<dc:creator>Sanjukta Samom</dc:creator>
		<pubDate>Tue, 01 Sep 2009 12:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1911</guid>
		<description>Awesome Example...I was looking for a good example for passing data between swf files....This example answers most of my quires...Thanks dude!</description>
		<content:encoded><![CDATA[<p>Awesome Example&#8230;I was looking for a good example for passing data between swf files&#8230;.This example answers most of my quires&#8230;Thanks dude!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Aprieto</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1131</link>
		<dc:creator>Arnold Aprieto</dc:creator>
		<pubDate>Mon, 01 Jun 2009 21:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1131</guid>
		<description>Hi Will,

I tried creating a code but it didn&#039;t work.  It may be a security issue.  I tried putting an event listener for each pages but to no avail.  Hence, I just created a session variable.  Primitive, but it gets the job done.  :)   but I was hoping I could use the LocalConnection.

Thanks Again.</description>
		<content:encoded><![CDATA[<p>Hi Will,</p>
<p>I tried creating a code but it didn&#8217;t work.  It may be a security issue.  I tried putting an event listener for each pages but to no avail.  Hence, I just created a session variable.  Primitive, but it gets the job done.  <img src='http://www.ahrooga.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    but I was hoping I could use the LocalConnection.</p>
<p>Thanks Again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1099</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Mon, 25 May 2009 21:50:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1099</guid>
		<description>Arnold,
I assume you mean two currently open browser pages. Like one open in Firefox, the other IE? I&#039;m not 100% sure. I would guess that both SWF&#039;s would need to be loaded from the same domain in order for it to work, if it works at all. This may be a security issue otherwise. By all means it&#039;s worth trying! Good luck :)</description>
		<content:encoded><![CDATA[<p>Arnold,<br />
I assume you mean two currently open browser pages. Like one open in Firefox, the other IE? I&#8217;m not 100% sure. I would guess that both SWF&#8217;s would need to be loaded from the same domain in order for it to work, if it works at all. This may be a security issue otherwise. By all means it&#8217;s worth trying! Good luck <img src='http://www.ahrooga.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnold Aprieto</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1098</link>
		<dc:creator>Arnold Aprieto</dc:creator>
		<pubDate>Mon, 25 May 2009 21:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1098</guid>
		<description>Great Work!  :)   
Is it possible to pass a variable from one swf to another with two browser pages using LocalConnection?</description>
		<content:encoded><![CDATA[<p>Great Work!  <img src='http://www.ahrooga.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Is it possible to pass a variable from one swf to another with two browser pages using LocalConnection?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stacey</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1083</link>
		<dc:creator>stacey</dc:creator>
		<pubDate>Fri, 22 May 2009 20:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1083</guid>
		<description>This doesn&#039;t work in IE7 with Flash Player 10?  Do you know why or is it just me?  It&#039;s awesome in FF...

I get this error: 

ArgumentError: Error #2082: Connect failed because the object is already connected.
	at flash.net::LocalConnection/connect()
	at Receiver_fla::MainTimeline/frame1()</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t work in IE7 with Flash Player 10?  Do you know why or is it just me?  It&#8217;s awesome in FF&#8230;</p>
<p>I get this error: </p>
<p>ArgumentError: Error #2082: Connect failed because the object is already connected.<br />
	at flash.net::LocalConnection/connect()<br />
	at Receiver_fla::MainTimeline/frame1()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sudheendra</title>
		<link>http://www.ahrooga.com/2008/08/sending-data-with-localconnection-in-flash/comment-page-1/#comment-1080</link>
		<dc:creator>Sudheendra</dc:creator>
		<pubDate>Fri, 22 May 2009 05:50:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ahrooga.com/?p=270#comment-1080</guid>
		<description>oh great! Its awesome example ... waas searching for the one like this... thanks dude....</description>
		<content:encoded><![CDATA[<p>oh great! Its awesome example &#8230; waas searching for the one like this&#8230; thanks dude&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
