<?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: ActionScript 3 Jpeg Encoder Revealed: Saving Images from Flash</title>
	<atom:link href="http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 13:48:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Dmitriy</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-21036</link>
		<dc:creator>Dmitriy</dc:creator>
		<pubDate>Sun, 17 Apr 2011 01:02:58 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-21036</guid>
		<description>thank you very much, helped greatly.

If will be possible clear how to make multipart forms with parts as octet streams and common strings - will be wonderfull</description>
		<content:encoded><![CDATA[<div class="KonaBody">thank you very much, helped greatly.</p>
<p>If will be possible clear how to make multipart forms with parts as octet streams and common strings &#8211; will be wonderfull</p></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michelle</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-20473</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Fri, 11 Feb 2011 20:40:08 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-20473</guid>
		<description>Yes, this worked great for me. But, I would LOVE to figure out a way to use the same method to share an image to facebook. Do you have an idea how one could do that?</description>
		<content:encoded><![CDATA[<div class="KonaBody">Yes, this worked great for me. But, I would LOVE to figure out a way to use the same method to share an image to facebook. Do you have an idea how one could do that?</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: bowo hadi Wibowo</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19387</link>
		<dc:creator>bowo hadi Wibowo</dc:creator>
		<pubDate>Wed, 08 Dec 2010 08:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19387</guid>
		<description>nice photo flash</description>
		<content:encoded><![CDATA[<div class="KonaBody">nice photo flash</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jinze Zhang</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19343</link>
		<dc:creator>Jinze Zhang</dc:creator>
		<pubDate>Sat, 04 Dec 2010 03:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19343</guid>
		<description>I can&#039;t believe this site is not Chinese-surportted!!Who did it...OMG
so much English,I almost can&#039;t understand what is said about...</description>
		<content:encoded><![CDATA[<div class="KonaBody">I can&#8217;t believe this site is not Chinese-surportted!!Who did it&#8230;OMG<br />
so much English,I almost can&#8217;t understand what is said about&#8230;</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adriana</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19319</link>
		<dc:creator>Adriana</dc:creator>
		<pubDate>Thu, 02 Dec 2010 17:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19319</guid>
		<description>For those who dont want to use PHP, but only Flash the following code works great for me. I also used the library mentioned above and help from the source code in this article: http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

I have a movie clip on the stage called &quot;sketch_mc&quot; and also a download button &quot;download_btn&quot;


import com.adobe.images.JPGEncoder;
import flash.events.MouseEvent;

var file:FileReference = new FileReference();

var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);
jpgSource.draw(sketch_mc,new Matrix());

var jpgEncoder:JPGEncoder = new JPGEncoder(100);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);

// Download 
download_btn.addEventListener(MouseEvent.CLICK, downloadIMG);

function downloadIMG (event:MouseEvent) {
	file.save(jpgStream,sketch_mc + &#039;.jpg&#039;);
}</description>
		<content:encoded><![CDATA[<div class="KonaBody">For those who dont want to use PHP, but only Flash the following code works great for me. I also used the library mentioned above and help from the source code in this article: <a href="http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/" rel="nofollow">http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/</a></p>
<p>I have a movie clip on the stage called &#8220;sketch_mc&#8221; and also a download button &#8220;download_btn&#8221;</p>
<p>import com.adobe.images.JPGEncoder;<br />
import flash.events.MouseEvent;</p>
<p>var file:FileReference = new FileReference();</p>
<p>var jpgSource:BitmapData = new BitmapData (sketch_mc.width, sketch_mc.height);<br />
jpgSource.draw(sketch_mc,new Matrix());</p>
<p>var jpgEncoder:JPGEncoder = new JPGEncoder(100);<br />
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);</p>
<p>// Download<br />
download_btn.addEventListener(MouseEvent.CLICK, downloadIMG);</p>
<p>function downloadIMG (event:MouseEvent) {<br />
	file.save(jpgStream,sketch_mc + &#8216;.jpg&#8217;);<br />
}</p></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adriana</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19309</link>
		<dc:creator>Adriana</dc:creator>
		<pubDate>Wed, 01 Dec 2010 20:46:06 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19309</guid>
		<description>To the author: Thank you very much for the GREAT Tutorial (sun) you helped me so much !

To the others:
By the way the way the download link is broken but you don&#039;t need it cuz there and it works fine. I tried to save a regular movie clip (cuz I needed for other purposes) as a JPG and I had problems when I tried to test it from the SWF file. I got 4 symbols added to the link string (dunno why). Instead, try to publish the file and test the HTML file through a browser. It works perfectly :)</description>
		<content:encoded><![CDATA[<div class="KonaBody">To the author: Thank you very much for the GREAT Tutorial (sun) you helped me so much !</p>
<p>To the others:<br />
By the way the way the download link is broken but you don&#8217;t need it cuz there and it works fine. I tried to save a regular movie clip (cuz I needed for other purposes) as a JPG and I had problems when I tried to test it from the SWF file. I got 4 symbols added to the link string (dunno why). Instead, try to publish the file and test the HTML file through a browser. It works perfectly <img src='http://designreviver.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </div>
]]></content:encoded>
	</item>
	<item>
		<title>By: serra hayes</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19286</link>
		<dc:creator>serra hayes</dc:creator>
		<pubDate>Mon, 29 Nov 2010 23:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19286</guid>
		<description>Download Latest Movies Here For Free:http://smal.ly/allmovies</description>
		<content:encoded><![CDATA[<div class="KonaBody">Download Latest Movies Here For Free:<a href="http://smal.ly/allmovies" rel="nofollow">http://smal.ly/allmovies</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlooDHounD</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19268</link>
		<dc:creator>BlooDHounD</dc:creator>
		<pubDate>Sun, 28 Nov 2010 18:26:24 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19268</guid>
		<description>http://www.blooddy.by/en/crypto/benchmark/</description>
		<content:encoded><![CDATA[<div class="KonaBody"><a href="http://www.blooddy.by/en/crypto/benchmark/" rel="nofollow">http://www.blooddy.by/en/crypto/benchmark/</a></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Media 2 &#187; Blog Archive &#187; Week 12: Odds and Ends</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19158</link>
		<dc:creator>Web Media 2 &#187; Blog Archive &#187; Week 12: Odds and Ends</dc:creator>
		<pubDate>Mon, 22 Nov 2010 23:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19158</guid>
		<description>[...] Saving Images from Flash [...]</description>
		<content:encoded><![CDATA[<div class="KonaBody">[...] Saving Images from Flash [...]</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillem</title>
		<link>http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash/comment-page-3/#comment-19020</link>
		<dc:creator>Guillem</dc:creator>
		<pubDate>Fri, 12 Nov 2010 20:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://designreviver.com/tutorials/actionscript-3-jpeg-encoder-revealed-saving-images-from-flash#comment-19020</guid>
		<description>If anyone is interested that’s my easy classical ASP way to get it (btw, thanks for this great tutorial):

 
 response.ContentType=&quot;image/jpeg&quot;
 data=request.BinaryRead(request.TotalBytes)
 response.binarywrite(data)</description>
		<content:encoded><![CDATA[<div class="KonaBody">If anyone is interested that’s my easy classical ASP way to get it (btw, thanks for this great tutorial):</p>
<p> response.ContentType=&#8221;image/jpeg&#8221;<br />
 data=request.BinaryRead(request.TotalBytes)<br />
 response.binarywrite(data)</p></div>
]]></content:encoded>
	</item>
</channel>
</rss>

