<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Forty-Two &#187; flash</title>
	<atom:link href="http://jameskilton.com/category/programming/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://jameskilton.com</link>
	<description>On gaming, programming, everything!</description>
	<lastBuildDate>Fri, 02 Dec 2011 22:04:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Adobe Flash 9 &amp; 10 Security Requirements</title>
		<link>http://jameskilton.com/2009/06/03/adobe-flash-9-10-security-requirements/</link>
		<comments>http://jameskilton.com/2009/06/03/adobe-flash-9-10-security-requirements/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 17:43:35 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://jameskilton.com/?p=123</guid>
		<description><![CDATA[For those of us messing and working in Flash, the transition from Flash 8 through to Flash 10 have been rife with some major changes in the security model that allows a local Flash application to communicate with the outside world. Adobe, knowing that these are big changes, had its developers write pages, pages, and [...]]]></description>
			<content:encoded><![CDATA[<p>For those of us messing and working in Flash, the transition from Flash 8 through to Flash 10 have been rife with some major changes in the security model that allows a local Flash application to communicate with the outside world. Adobe, knowing that these are big changes, had its developers write <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html">pages</a>, <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes.html">pages</a>, and <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html">pages</a> of documentation describing the where what how and why of these updates. </p>
<p>Problem is, it&#8217;s very hard to find the simple How-Tos for common situations in all this text. I spent many days scouring and tinkering to figure out the security solution to my application: a flash-based video viewer that would connect into a server and display Motion-JPEG frames that get streamed in. </p>
<p>Hopefully I&#8217;ll help save someone else the same hours of research and playing with this problem. My solution is such:</p>
<p>You first need up a simple service on the server you want to connect into that serves the crossdomain.xml content that defines your security policies.</p>
<p>I use a modified version of the service found here: <a href="http://www.lightsphere.com/dev/articles/flash_socket_policy.html">http://www.lightsphere.com/dev/articles/flash_socket_policy.html</a>. It&#8217;s updated to be a full Daemon process, so you need Proc::Daemon and Proc::PID::File installed. </p>
<p><script src="http://gist.github.com/123110.js"></script></p>
<p>Please note:</p>
<blockquote><p>
  &lt;site-control permitted-cross-domain-policies=&#8221;all&#8221;/&gt;
</p></blockquote>
<p>is the required addition to make this script work with Flash 10. Also, if you are worried about corporate firewalls blocking ports < 1000, simply change $port to something bigger, and add the following to your Flash client:</p>
<p><script src="http://gist.github.com/123117.js"></script></p>
<p>And you're good to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://jameskilton.com/2009/06/03/adobe-flash-9-10-security-requirements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

