<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create Images with AIR and JPEGEncoder</title>
	<atom:link href="http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/</link>
	<description>News and Information about Adobe Flex &#38; Adobe AIR by Rich Tretola</description>
	<lastBuildDate>Wed, 28 Dec 2011 05:30:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Nuwan</title>
		<link>http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/comment-page-1/#comment-40627</link>
		<dc:creator>Nuwan</dc:creator>
		<pubDate>Tue, 03 Feb 2009 17:09:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/#comment-40627</guid>
		<description>Thanks a lot,
This is really helpful for me.</description>
		<content:encoded><![CDATA[<p>Thanks a lot,<br />
This is really helpful for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Hancock</title>
		<link>http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/comment-page-1/#comment-27525</link>
		<dc:creator>Aaron Hancock</dc:creator>
		<pubDate>Sun, 12 Oct 2008 05:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/#comment-27525</guid>
		<description>I&#039;m writing an Air app to convert images to swf files.  Everything works great except the swf files are about 100 times larger than if created by the Flash IDE.  Is there anything else I can do to shrink the file size of the swf output?

Thanks! (See Code Below)

var file:File = directory;
var fs:FileStream = new FileStream();
fs.open( file, FileMode.WRITE );	 
/* compressed */
var swf_head : ByteArray = new ByteArray();
swf_head.endian = Endian.LITTLE_ENDIAN;
swf_head.writeBytes( (evt.target as LoaderInfo).bytes, 0, 8 );
swf_head[0] = 0x43; // &#039;C&#039; letter; 
swf_head.position = 0;
var swf_body : ByteArray = new ByteArray();
swf_body.endian = Endian.LITTLE_ENDIAN;
swf_body.writeBytes( (evt.target as LoaderInfo).bytes, 8 );
swf_body.position = 0;
swf_body.compress();
swf_body.position = 0;		 
fs.writeBytes( swf_head );
fs.writeBytes( swf_body );
fs.close();</description>
		<content:encoded><![CDATA[<p>I&#8217;m writing an Air app to convert images to swf files.  Everything works great except the swf files are about 100 times larger than if created by the Flash IDE.  Is there anything else I can do to shrink the file size of the swf output?</p>
<p>Thanks! (See Code Below)</p>
<p>var file:File = directory;<br />
var fs:FileStream = new FileStream();<br />
fs.open( file, FileMode.WRITE );<br />
/* compressed */<br />
var swf_head : ByteArray = new ByteArray();<br />
swf_head.endian = Endian.LITTLE_ENDIAN;<br />
swf_head.writeBytes( (evt.target as LoaderInfo).bytes, 0, 8 );<br />
swf_head[0] = 0&#215;43; // &#8216;C&#8217; letter;<br />
swf_head.position = 0;<br />
var swf_body : ByteArray = new ByteArray();<br />
swf_body.endian = Endian.LITTLE_ENDIAN;<br />
swf_body.writeBytes( (evt.target as LoaderInfo).bytes, 8 );<br />
swf_body.position = 0;<br />
swf_body.compress();<br />
swf_body.position = 0;<br />
fs.writeBytes( swf_head );<br />
fs.writeBytes( swf_body );<br />
fs.close();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: everythingflex</title>
		<link>http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/comment-page-1/#comment-583</link>
		<dc:creator>everythingflex</dc:creator>
		<pubDate>Sun, 18 May 2008 22:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/#comment-583</guid>
		<description>No, this is not possible without the help of outside libraries. See this post where I used the Merapi project with AIR to accomplish this.

http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/</description>
		<content:encoded><![CDATA[<p>No, this is not possible without the help of outside libraries. See this post where I used the Merapi project with AIR to accomplish this.</p>
<p><a href="http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/" rel="nofollow">http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gino8080</title>
		<link>http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/comment-page-1/#comment-584</link>
		<dc:creator>gino8080</dc:creator>
		<pubDate>Sun, 18 May 2008 21:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.everythingflex.com/2008/02/25/create-images-with-air-and-jpegencoder/#comment-584</guid>
		<description>nice tutorial!

but is possible to take a screenshot of the screen? like the desktop?

i mean something that is not rendered inside flash?

thank a lot!</description>
		<content:encoded><![CDATA[<p>nice tutorial!</p>
<p>but is possible to take a screenshot of the screen? like the desktop?</p>
<p>i mean something that is not rendered inside flash?</p>
<p>thank a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

