<?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>Opthumb &#187; bitmap</title>
	<atom:link href="http://www.opthumb.com/tag/bitmap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.opthumb.com</link>
	<description>Actionscript, Rails, Ruby, and CSS discovery</description>
	<lastBuildDate>Thu, 22 Oct 2009 17:55:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Crossdomain Bitmap Loading</title>
		<link>http://www.opthumb.com/2008/crossdomain-bitmap-loading/09/</link>
		<comments>http://www.opthumb.com/2008/crossdomain-bitmap-loading/09/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 14:25:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[bytearray]]></category>
		<category><![CDATA[crossdomain]]></category>

		<guid isPermaLink="false">http://www.opthumb.com/?p=32</guid>
		<description><![CDATA[Trying to load a bitmap crossdomain without the correct policy file.  Because of this, I can&#8217;t access the bitmapData within the loaded document which makes scaling the photos look horrible.  I&#8217;m going to try loading the ByteArray and translating it directly to a bitmap.  However, I&#8217;m not sure if this gets around the crossdomain issue. [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to load a bitmap crossdomain without the correct policy file.  Because of this, I can&#8217;t access the bitmapData within the loaded document which makes scaling the photos look horrible.  I&#8217;m going to try loading the ByteArray and translating it directly to a bitmap.  However, I&#8217;m not sure if this gets around the crossdomain issue.</p>
<p>update:</p>
<p>So&#8230;. loading the bitmapData as a byteArray using the netStream class seems to work.  I&#8217;m going to do a little load testing to see how fast this method is before proceeding.  Here are some resources:</p>
<ul>
<li><a href="http://livedocs.adobe.com/flex/201/langref/flash/display/Loader.html#loadBytes()">http://livedocs.adobe.com/flex/201/langref/flash/display/Loader.html#loadBytes()</a></li>
<li><a href="http://www.onflex.org/ted/2007/12/progressive-image-loading-with.php">http://www.onflex.org/ted/2007/12/progressive-image-loading-with.php</a></li>
</ul>
<p>update:</p>
<p>Although at first glance the previous solution seemed to work, it looks like I am still unable to use bitmapData.draw() on the display object that&#8217;s created.  I wrapped the some console logging around each step of the conversion process and it looks like everything goes to crap at: oBitmapData.draw(oSource, oMatrix) where oSource is the loaded file in a Loader class that I have forced a type convertion on.  The struggle continues.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.opthumb.com/2008/crossdomain-bitmap-loading/09/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

