<?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>memo.393 &#187; Flickr</title>
	<atom:link href="http://memo.393.bz/archives/tag/flickr/feed" rel="self" type="application/rss+xml" />
	<link>http://memo.393.bz</link>
	<description>個人的メモです。間違いなどありましたらご指摘ください。。。</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:55:47 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[AS]Flickrの画像のBitmapDataを弄る際のセキュリティ解除方法</title>
		<link>http://memo.393.bz/archives/713</link>
		<comments>http://memo.393.bz/archives/713#comments</comments>
		<pubDate>Tue, 28 Jul 2009 12:44:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flickr]]></category>

		<guid isPermaLink="false">http://memo.393.bz/?p=713</guid>
		<description><![CDATA[Flickrの画像を読み込み、bimapdataを弄ろうとすると、以下のように怒られる。
SecurityError: Error #2122: セキュリティサンドボックス侵害 : BitmapData.draw:htt [...]]]></description>
			<content:encoded><![CDATA[<p>Flickrの画像を読み込み、bimapdataを弄ろうとすると、以下のように怒られる。</p>
<blockquote><p>SecurityError: Error #2122: セキュリティサンドボックス侵害 : BitmapData.draw:http://393.bz/test/New.swf は http://farm4.static.flickr.com/3315/3667944681_06e506542e.jpg にアクセスできません。ポリシーファイルが必要ですが、このメディアがロードされたとき、checkPolicyFile フラグが設定されませんでした。<br />
at flash.display::BitmapData/draw()<br />
at NewClass/drawImage()
</p></blockquote>
<p>以下のおまじないを記述すれば大丈夫。</p>
<pre name="code" class="as">

Security.loadPolicyFile(&quot;http://api.flickr.com/crossdomain.xml&quot;);
Security.loadPolicyFile(&quot;http://farm1.static.flickr.com/crossdomain.xml&quot;);
Security.loadPolicyFile(&quot;http://farm2.static.flickr.com/crossdomain.xml&quot;);
Security.loadPolicyFile(&quot;http://farm3.static.flickr.com/crossdomain.xml&quot;);
Security.loadPolicyFile(&quot;http://farm4.static.flickr.com/crossdomain.xml&quot;);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://memo.393.bz/archives/713/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
