<?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: Using the ImageSnapshot class to capture images as JPEGs or PNGs in Flex 3</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gerry</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-8860</link>
		<dc:creator>Gerry</dc:creator>
		<pubDate>Thu, 20 Jan 2011 15:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-8860</guid>
		<description>Does anyone know of an issue where you use this to take a snapshot then all event listeners applied to the MovieClip you just took a snapshot of now no longer has the event listeners active? 
I am using ImageSnapshot like this...
snap_image = ImageSnapshot.captureImage(txtContainer, 300, new PNGEncoder());
ResponseString = ImageSnapshot.encodeImageAsBase64(snap_image);

txtContainer is a movieClip that contains some dynamically created objects and it has eventListeners for roll over, out and click. Those no longer work after the snapshot is taken even when I try to reapply the listeners.
Any tips?</description>
		<content:encoded><![CDATA[<p>Does anyone know of an issue where you use this to take a snapshot then all event listeners applied to the MovieClip you just took a snapshot of now no longer has the event listeners active?<br />
I am using ImageSnapshot like this&#8230;<br />
snap_image = ImageSnapshot.captureImage(txtContainer, 300, new PNGEncoder());<br />
ResponseString = ImageSnapshot.encodeImageAsBase64(snap_image);</p>
<p>txtContainer is a movieClip that contains some dynamically created objects and it has eventListeners for roll over, out and click. Those no longer work after the snapshot is taken even when I try to reapply the listeners.<br />
Any tips?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Alvi</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-8535</link>
		<dc:creator>Tahir Alvi</dc:creator>
		<pubDate>Mon, 08 Nov 2010 10:39:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-8535</guid>
		<description>Hi peter.

I use this same approach in Flex 3 with sdk 3.2, but i got error.

Are any limitation in SDK 3.2 for image encoder.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi peter.</p>
<p>I use this same approach in Flex 3 with sdk 3.2, but i got error.</p>
<p>Are any limitation in SDK 3.2 for image encoder.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-4664</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 21 Jul 2009 11:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-4664</guid>
		<description>I&#039;m trying to do this in flash using flash develop but publishing through adobe ide. I should be able to use the base64 methods since I imported the swc which has them, it compiles telling me that it can find the signatures but I get the following runtime error, im using a path to the library like C:\work\myproject\libs\as3core and in that location there is the swc as3corelib.swc

Class mx.utils::Base64Encoder could not be found.
thanks for any help</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to do this in flash using flash develop but publishing through adobe ide. I should be able to use the base64 methods since I imported the swc which has them, it compiles telling me that it can find the signatures but I get the following runtime error, im using a path to the library like C:\work\myproject\libs\as3core and in that location there is the swc as3corelib.swc</p>
<p>Class mx.utils::Base64Encoder could not be found.<br />
thanks for any help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Indigo Sanj</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-2080</link>
		<dc:creator>Indigo Sanj</dc:creator>
		<pubDate>Wed, 16 Apr 2008 14:27:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-2080</guid>
		<description>hi! Is this the quickest way to create a png from a Flex component?  I am trying to create a button such as &quot;view PNG&quot; and have my flex chart opened in a web-browser window as a png.

any ideas</description>
		<content:encoded><![CDATA[<p>hi! Is this the quickest way to create a png from a Flex component?  I am trying to create a button such as &#8220;view PNG&#8221; and have my flex chart opened in a web-browser window as a png.</p>
<p>any ideas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-2079</link>
		<dc:creator>peterd</dc:creator>
		<pubDate>Mon, 17 Mar 2008 20:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-2079</guid>
		<description>Tony,

I&#039;ll try and come up with an example tonight, but you should be able to use a combination of the Base64Decoder class&#039;s &lt;code&gt;decode()&lt;/code&gt; and &lt;code&gt;toByteArray()&lt;/code&gt; methods to convert a base64 string into a byte array, and then you can display the byte array in a Flex 3 Image control using the &lt;code&gt;load()&lt;/code&gt; method.

Peter

UPDATE: For more information, see &lt;a href=&quot;http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/&quot; rel=&quot;nofollow&quot;&gt;&quot;Displaying an image saved as a Base64 encoded string in Flex 3&quot;&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Tony,</p>
<p>I&#8217;ll try and come up with an example tonight, but you should be able to use a combination of the Base64Decoder class&#8217;s <code>decode()</code> and <code>toByteArray()</code> methods to convert a base64 string into a byte array, and then you can display the byte array in a Flex 3 Image control using the <code>load()</code> method.</p>
<p>Peter</p>
<p>UPDATE: For more information, see <a href="http://blog.flexexamples.com/2008/03/17/displaying-an-image-saved-as-a-base64-encoded-string-in-flex-3/" rel="nofollow">&#8220;Displaying an image saved as a Base64 encoded string in Flex 3&#8243;</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-2078</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 17 Mar 2008 14:36:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-2078</guid>
		<description>Hi Peter,

Thats a great example , but can we create the vice-verca of that means creating image from this binary data.


Thanks,
Tony</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>Thats a great example , but can we create the vice-verca of that means creating image from this binary data.</p>
<p>Thanks,<br />
Tony</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/comment-page-1/#comment-2077</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Thu, 13 Dec 2007 08:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/07/using-the-imagesnapshot-class-to-capture-images-as-jpegs-or-pngs-in-flex-3/#comment-2077</guid>
		<description>great site


visit this website also: http://www.flexexamples.blogspot.com

thanks
jon

http://www.flexexamples.blogspot.com</description>
		<content:encoded><![CDATA[<p>great site</p>
<p>visit this website also: <a href="http://www.flexexamples.blogspot.com" rel="nofollow">http://www.flexexamples.blogspot.com</a></p>
<p>thanks<br />
jon</p>
<p><a href="http://www.flexexamples.blogspot.com" rel="nofollow">http://www.flexexamples.blogspot.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

