<?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: Save Flex chart as image</title>
	<atom:link href="http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/</link>
	<description>Odds On Flex</description>
	<lastBuildDate>Tue, 09 Mar 2010 17:33:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jaymin</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-69</link>
		<dc:creator>Jaymin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:38:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-69</guid>
		<description>No probs Graham, Thanks for confirming.

I will investigate further and let you know if any success.

Jaymin</description>
		<content:encoded><![CDATA[<p>No probs Graham, Thanks for confirming.</p>
<p>I will investigate further and let you know if any success.</p>
<p>Jaymin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Odds</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-68</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-68</guid>
		<description>Hi Jaymin,

I&#039;m afraid that strikes me as being an issue somewhere between the Flash Player plug-in, the browser and the platform.  At a guess, there will be no readily-available solution, I&#039;m afraid.  I do not have development access to a machine running Windows Server 2008 so I am unable to investigate further.

Graham</description>
		<content:encoded><![CDATA[<p>Hi Jaymin,</p>
<p>I&#8217;m afraid that strikes me as being an issue somewhere between the Flash Player plug-in, the browser and the platform.  At a guess, there will be no readily-available solution, I&#8217;m afraid.  I do not have development access to a machine running Windows Server 2008 so I am unable to investigate further.</p>
<p>Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaymin</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-67</link>
		<dc:creator>Jaymin</dc:creator>
		<pubDate>Wed, 03 Mar 2010 13:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-67</guid>
		<description>Hi Graham, thanks for the very useful piece of code :)

I have integrated it and seems working fine. But I have come across some complaints that the &quot;Save Image&quot; dialog box doesn&#039;t shows the .png extension with some browser-platform combinations. For example, it works fine in both IE7 and Firefox 2 with Flash Player 10 in Windows XP. But when tested on IE7 and also IE8 in Windows Server 2008, it doesn&#039;t shows the .png extension. Below is the function I&#039;m using:

public function saveImage():void
        {
                var image:ImageSnapshot = ImageSnapshot.captureImage(ibdCurrentChart, 150, new PNGEncoder(), true);
                var file:FileReference = new FileReference();
                file.save(image.data, &quot;image.png&quot;);
        }

Please suggest a solution.</description>
		<content:encoded><![CDATA[<p>Hi Graham, thanks for the very useful piece of code <img src='http://www.scottlogic.co.uk/blog/graham/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have integrated it and seems working fine. But I have come across some complaints that the &#8220;Save Image&#8221; dialog box doesn&#8217;t shows the .png extension with some browser-platform combinations. For example, it works fine in both IE7 and Firefox 2 with Flash Player 10 in Windows XP. But when tested on IE7 and also IE8 in Windows Server 2008, it doesn&#8217;t shows the .png extension. Below is the function I&#8217;m using:</p>
<p>public function saveImage():void<br />
        {<br />
                var image:ImageSnapshot = ImageSnapshot.captureImage(ibdCurrentChart, 150, new PNGEncoder(), true);<br />
                var file:FileReference = new FileReference();<br />
                file.save(image.data, &#8220;image.png&#8221;);<br />
        }</p>
<p>Please suggest a solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roy</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-63</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Mon, 04 Jan 2010 22:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-63</guid>
		<description>thanks. i will look for another solution. thanks.</description>
		<content:encoded><![CDATA[<p>thanks. i will look for another solution. thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Odds</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-62</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Mon, 04 Jan 2010 10:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-62</guid>
		<description>Yes, this is possible.  However, the technique I have outlined in this article is for client-side saving of the image, not server-side.  To save an image server-side you need to send the image data back to the server using one of the many available techniques, e.g. POSTing to a servlet using an &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/rpc/http/mxml/HTTPService.html&quot; rel=&quot;nofollow&quot;&gt;HTTPService&lt;/a&gt; or uploading using a &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/mxml/RemoteObject.html&quot; rel=&quot;nofollow&quot;&gt;RemoteObject&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Yes, this is possible.  However, the technique I have outlined in this article is for client-side saving of the image, not server-side.  To save an image server-side you need to send the image data back to the server using one of the many available techniques, e.g. POSTing to a servlet using an <a href="http://livedocs.adobe.com/flex/3/langref/mx/rpc/http/mxml/HTTPService.html" rel="nofollow">HTTPService</a> or uploading using a <a href="http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/mxml/RemoteObject.html" rel="nofollow">RemoteObject</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roy</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-61</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Mon, 04 Jan 2010 10:17:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-61</guid>
		<description>this is what i cam trying to do. when user open the page, it will automatically save a copy of chart in the server. is it possible?</description>
		<content:encoded><![CDATA[<p>this is what i cam trying to do. when user open the page, it will automatically save a copy of chart in the server. is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roy</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-60</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Mon, 04 Jan 2010 09:50:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-60</guid>
		<description>the image file does not saved in k: after the application is load completed. however, clicking on the button pop up a save as dialog as expected.</description>
		<content:encoded><![CDATA[<p>the image file does not saved in k: after the application is load completed. however, clicking on the button pop up a save as dialog as expected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Odds</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-59</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Mon, 04 Jan 2010 09:47:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-59</guid>
		<description>Could you provide a bit more information about what didn&#039;t work, any errors, etc?</description>
		<content:encoded><![CDATA[<p>Could you provide a bit more information about what didn&#8217;t work, any errors, etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roy</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-58</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Mon, 04 Jan 2010 09:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-58</guid>
		<description>i add creationComplete=&quot;saveChart()&quot; in the mx:application
and save chart under  
 private function saveChart():void
            {
                var image:ImageSnapshot = ImageSnapshot.captureImage(myChart, 300, new PNGEncoder(), true);
                var file:FileReference = new FileReference();
                file.save(image.data, &quot;k:\chart.png&quot;);
            }

but it doesn&#039;t work...any idea?</description>
		<content:encoded><![CDATA[<p>i add creationComplete=&#8221;saveChart()&#8221; in the mx:application<br />
and save chart under<br />
 private function saveChart():void<br />
            {<br />
                var image:ImageSnapshot = ImageSnapshot.captureImage(myChart, 300, new PNGEncoder(), true);<br />
                var file:FileReference = new FileReference();<br />
                file.save(image.data, &#8220;k:\chart.png&#8221;);<br />
            }</p>
<p>but it doesn&#8217;t work&#8230;any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Odds</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-57</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Mon, 04 Jan 2010 09:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-57</guid>
		<description>Hi Roy,

You could invoke the saveChart method shown above from the &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/core/Application.html&quot; rel=&quot;nofollow&quot;&gt;Application&lt;/a&gt;&#039;s &lt;a href=&quot;http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html#event:creationComplete&quot; rel=&quot;nofollow&quot;&gt;creationComplete&lt;/a&gt; event.

Regards,
Graham</description>
		<content:encoded><![CDATA[<p>Hi Roy,</p>
<p>You could invoke the saveChart method shown above from the <a href="http://livedocs.adobe.com/flex/3/langref/mx/core/Application.html" rel="nofollow">Application</a>&#8217;s <a href="http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html#event:creationComplete" rel="nofollow">creationComplete</a> event.</p>
<p>Regards,<br />
Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roy</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-56</link>
		<dc:creator>roy</dc:creator>
		<pubDate>Mon, 04 Jan 2010 09:18:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-56</guid>
		<description>it works..
by the way, how could i save the image automatically after the page is loaded instead of button click</description>
		<content:encoded><![CDATA[<p>it works..<br />
by the way, how could i save the image automatically after the page is loaded instead of button click</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-45</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Wed, 18 Nov 2009 22:51:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-45</guid>
		<description>This was a great article.  Very much appreciated.</description>
		<content:encoded><![CDATA[<p>This was a great article.  Very much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-44</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 19 Oct 2009 01:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-44</guid>
		<description>Graham.  Thanks for your tip about targeting Flash Player 10.  I received that 1061 error, and you solved my issue.  After a quick search, a lot of other people were having the same problem.  They assumed that using the latest Flex API would take care of the issue.  Thanks for the example, and thanks for the follow up!!!</description>
		<content:encoded><![CDATA[<p>Graham.  Thanks for your tip about targeting Flash Player 10.  I received that 1061 error, and you solved my issue.  After a quick search, a lot of other people were having the same problem.  They assumed that using the latest Flex API would take care of the issue.  Thanks for the example, and thanks for the follow up!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
