<?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>Floorplanner Tech Blog &#187; crossdomain.xml</title>
	<atom:link href="http://techblog.floorplanner.com/tag/crossdomainxml/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.floorplanner.com</link>
	<description>Our latest geek adventures!</description>
	<lastBuildDate>Tue, 16 Mar 2010 18:45:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New cross domain findings</title>
		<link>http://techblog.floorplanner.com/2008/09/12/new-cross-domain-findings/</link>
		<comments>http://techblog.floorplanner.com/2008/09/12/new-cross-domain-findings/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 09:08:38 +0000</pubDate>
		<dc:creator>Gert-Jan van der Wel</dc:creator>
				<category><![CDATA[Flash+ActionScript]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[crossdomain.xml]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[policy file]]></category>

		<guid isPermaLink="false">http://techblog.floorplanner.com/?p=154</guid>
		<description><![CDATA[Today I learned a couple of new things about the use (and trouble) of BitmapData in combination with loading content from other domains. I thought we solved it a while ago, but it in some situations it didn&#8217;t work&#8230; I definitely hope this is my last post about the subject!
When you load content from another domain and [...]]]></description>
			<content:encoded><![CDATA[<p>Today I learned a couple of new things about the use (and trouble) of BitmapData in combination with loading content from other domains. I thought we <a href="http://techblog.floorplanner.com/2008/05/26/bitmapdatadraw-cross-domains/">solved it</a> a while ago, but it in some situations it didn&#8217;t work&#8230; I definitely hope this is my last post about the subject!</p>
<p>When you load content from another domain and you want to use BitmapData, then you always have to load a policy file (crossdomain.xml) from that other domain. What I discovered today is that you have to do this for ALL the content you&#8217;re loading, otherwise the BitmapData just doesn&#8217;t work. Even if it&#8217;s content you don&#8217;t want to use for the BitmapData, you still need to load the policy file. It took me quite a while of debugging to figure this out.</p>
<p>This is our current setup. Every server has its own domain.</p>
<p><img class="alignnone size-full wp-image-156" style="border: 0px initial initial;" title="Server setup" src="http://techblog.floorplanner.com/wp-content/uploads/2008/09/afbeelding-4.png" alt="" width="540" height="227" /></p>
<p>The other thing I learned today is a small trick to remove the <em>Warning</em> in your logs. Jeffry Houser explains it in his post <a href="http://www.jeffryhouser.com/index.cfm/2008/8/12/Fixing-your-CrossDomainxml-File">Fixing your CrossDomain.xml File.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techblog.floorplanner.com/2008/09/12/new-cross-domain-findings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
