<?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"
	>
<channel>
	<title>Comments on: socketBridge: Flash - Javascript Socket Bridge</title>
	<atom:link href="http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/feed/" rel="self" type="application/rss+xml" />
	<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/</link>
	<description>An infrequent blog about the internet, programming and related technology</description>
	<pubDate>Wed, 10 Mar 2010 04:26:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Gilles</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1961</link>
		<dc:creator>Gilles</dc:creator>
		<pubDate>Tue, 05 May 2009 22:01:45 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1961</guid>
		<description>Seems that Symantec is now picking up socket_bridge.swf and reporting it as Downloader.Swif.C Trojan. I've submitted a false positive report, so hopefully it's fixed soon, but in the mean time just a heads up.</description>
		<content:encoded><![CDATA[<p>Seems that Symantec is now picking up socket_bridge.swf and reporting it as Downloader.Swif.C Trojan. I&#8217;ve submitted a false positive report, so hopefully it&#8217;s fixed soon, but in the mean time just a heads up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matth</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1960</link>
		<dc:creator>matth</dc:creator>
		<pubDate>Tue, 05 May 2009 20:23:19 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1960</guid>
		<description>Hmm, that's a weird one I've not seen before. I'm really not that hot with Flash debugging I'm afraid!

I know Ionel who commented above has his own version of the socketBridge app with some revamped code. Basically the same functionality but with a nicer JS interface, might be worth a try if you can't track down the bug.

http://ionelmc.wordpress.com/2008/11/29/flash-socket-bridge-with-haxe/
</description>
		<content:encoded><![CDATA[<p>Hmm, that&#8217;s a weird one I&#8217;ve not seen before. I&#8217;m really not that hot with Flash debugging I&#8217;m afraid!</p>
<p>I know Ionel who commented above has his own version of the socketBridge app with some revamped code. Basically the same functionality but with a nicer JS interface, might be worth a try if you can&#8217;t track down the bug.</p>
<p><a href="http://ionelmc.wordpress.com/2008/11/29/flash-socket-bridge-with-haxe/" onclick="javascript:pageTracker._trackPageview('a/http://ionelmc.wordpress.com/2008/11/29/flash-socket-bridge-with-haxe/');" rel="nofollow">http://ionelmc.wordpress.com/2008/11/29/flash-socket-bridge-with-haxe/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaiser Soze</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1958</link>
		<dc:creator>Kaiser Soze</dc:creator>
		<pubDate>Tue, 05 May 2009 18:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1958</guid>
		<description>Thanks! Moving it off the screen with an absolute position did the trick.

You know, I've been testing this a lot today and sometimes I get the following error for no apparent reason:

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
	at Boot_3D39A$/__trace()
	at MethodInfo-65()
	at SocketBridge$/connect()
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at flash.external::ExternalInterface$/_callIn()
	at ()

If you just reload the page, no code changes, it works fine the second time around. Firebug reports the following in these cases:

uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].</description>
		<content:encoded><![CDATA[<p>Thanks! Moving it off the screen with an absolute position did the trick.</p>
<p>You know, I&#8217;ve been testing this a lot today and sometimes I get the following error for no apparent reason:</p>
<p>Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.<br />
	at Boot_3D39A$/__trace()<br />
	at MethodInfo-65()<br />
	at SocketBridge$/connect()<br />
	at Function/http://adobe.com/AS3/2006/builtin::apply()<br />
	at flash.external::ExternalInterface$/_callIn()<br />
	at ()</p>
<p>If you just reload the page, no code changes, it works fine the second time around. Firebug reports the following in these cases:</p>
<p>uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matth</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1956</link>
		<dc:creator>matth</dc:creator>
		<pubDate>Tue, 05 May 2009 16:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1956</guid>
		<description>@Kaiser Soze

A few options maybe, could try adding CSS display:none; div after the SWF has loaded with SWFObject ? Otherwise you could put it in a div which is absolutely positioned with top and left values of -100000px. 

Sure I have had this working but can't find the exact code I used sorry.</description>
		<content:encoded><![CDATA[<p>@Kaiser Soze</p>
<p>A few options maybe, could try adding CSS display:none; div after the SWF has loaded with SWFObject ? Otherwise you could put it in a div which is absolutely positioned with top and left values of -100000px. </p>
<p>Sure I have had this working but can&#8217;t find the exact code I used sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kaiser Soze</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1955</link>
		<dc:creator>Kaiser Soze</dc:creator>
		<pubDate>Tue, 05 May 2009 16:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1955</guid>
		<description>This is a great tool. I only have one issue: how would you hide it on the page if you don't care to display the console output? I tried several ways to do this (putting the embedded object inside a hidden div, setting the object size to 0x0 or 1x1, etc) but none worked. The swf crashes if I set the size too small, and it doesn't get loaded if I wrap it around an invisible div.

Any feedback on this would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>This is a great tool. I only have one issue: how would you hide it on the page if you don&#8217;t care to display the console output? I tried several ways to do this (putting the embedded object inside a hidden div, setting the object size to 0&#215;0 or 1&#215;1, etc) but none worked. The swf crashes if I set the size too small, and it doesn&#8217;t get loaded if I wrap it around an invisible div.</p>
<p>Any feedback on this would be greatly appreciated!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: the blogoholic &#187; Blog Archive &#187; Sockets with JavaScript</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1321</link>
		<dc:creator>the blogoholic &#187; Blog Archive &#187; Sockets with JavaScript</dc:creator>
		<pubDate>Wed, 11 Mar 2009 00:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-1321</guid>
		<description>[...] Obviously JavaScript can&#8217;t do it directly, but with Adobe Flash and something like socketBridge (or this improved version) you could control a socket with mostly JavaScript.  The only problem [...]</description>
		<content:encoded><![CDATA[<p>[...] Obviously JavaScript can&#8217;t do it directly, but with Adobe Flash and something like socketBridge (or this improved version) you could control a socket with mostly JavaScript.  The only problem [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flash socket bridge with haxe &#171; ionel&#8217;s coderlog</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-249</link>
		<dc:creator>Flash socket bridge with haxe &#171; ionel&#8217;s coderlog</dc:creator>
		<pubDate>Fri, 28 Nov 2008 23:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-249</guid>
		<description>[...] of solutions for making a bridge to use the flash sockets (flash.net.Socket) in javascript, notably socketBridge and jssockets. But I didn&#8217;t like the way they made you write your client code: because you [...]</description>
		<content:encoded><![CDATA[<p>[...] of solutions for making a bridge to use the flash sockets (flash.net.Socket) in javascript, notably socketBridge and jssockets. But I didn&#8217;t like the way they made you write your client code: because you [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ionel</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-179</link>
		<dc:creator>ionel</dc:creator>
		<pubDate>Wed, 12 Nov 2008 09:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-179</guid>
		<description>The way you call the callbacks using setTimeout is bound for failure: no quote escape for the string you pass to setTimeout. While it can be easily fixed i don't think it would be very performant. A solution would be just calling the callbacks as usual and do setTimeout if necessary in the javascript code.</description>
		<content:encoded><![CDATA[<p>The way you call the callbacks using setTimeout is bound for failure: no quote escape for the string you pass to setTimeout. While it can be easily fixed i don&#8217;t think it would be very performant. A solution would be just calling the callbacks as usual and do setTimeout if necessary in the javascript code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Selçuk YAZAR</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-138</link>
		<dc:creator>Selçuk YAZAR</dc:creator>
		<pubDate>Thu, 30 Oct 2008 07:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-138</guid>
		<description>Hi,

thanks for the code and samples, but i tried all thing but it didn't work.i wrote my socket server using c#. it's listen 9000 port and i have corssdomain.xml file and i added the line "loadPolicyFile" into hx code. But it's not working. any other suggestion.


thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>thanks for the code and samples, but i tried all thing but it didn&#8217;t work.i wrote my socket server using c#. it&#8217;s listen 9000 port and i have corssdomain.xml file and i added the line &#8220;loadPolicyFile&#8221; into hx code. But it&#8217;s not working. any other suggestion.</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-125</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 24 Oct 2008 20:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://matthaynes.net/blog/2008/07/17/socketbridge-flash-javascript-socket-bridge/#comment-125</guid>
		<description>I wrote a small python policy server for the people that just don't want to write it :)

&lt;pre name="code" class="ruby"&gt;
from twisted.internet import reactor
from twisted.internet.protocol import Protocol, Factory
_policy = "&#60;cross-domain-policy&#62;&#60;allow-access-from domain='*' to-ports='*' secure='false' /&#62;&#60;/cross-domain-policy&#62;\0"

class PolicyHandler(Protocol):
 def __init__(self):
  pass

 def dataReceived(self, data):
  self.transport.write(_policy)

def main():
 f = Factory()
 f.protocol = PolicyHandler
 reactor.listenTCP(843, f)
 print "Policy handler running on port 843."
 reactor.run()

if __name__ == '__main__':
 main()
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I wrote a small python policy server for the people that just don&#8217;t want to write it :)</p>
<pre name="code" class="ruby">
from twisted.internet import reactor
from twisted.internet.protocol import Protocol, Factory
_policy = "&lt;cross-domain-policy&gt;&lt;allow-access-from domain='*' to-ports='*' secure='false' /&gt;&lt;/cross-domain-policy&gt;\0"

class PolicyHandler(Protocol):
 def __init__(self):
  pass

 def dataReceived(self, data):
  self.transport.write(_policy)

def main():
 f = Factory()
 f.protocol = PolicyHandler
 reactor.listenTCP(843, f)
 print "Policy handler running on port 843."
 reactor.run()

if __name__ == '__main__':
 main()
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
