<?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 and Sodds</description>
	<lastBuildDate>Fri, 20 Jan 2012 14:38:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Hemant</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-570</link>
		<dc:creator>Hemant</dc:creator>
		<pubDate>Fri, 20 Jan 2012 06:21:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-570</guid>
		<description>hi..
i have the same problem with leontine
i already change the flex compiler to flash player 10
and i still got the problem
error message on the line
file.save(image.data, “chart.png”);</description>
		<content:encoded><![CDATA[<p>hi..<br />
i have the same problem with leontine<br />
i already change the flex compiler to flash player 10<br />
and i still got the problem<br />
error message on the line<br />
file.save(image.data, “chart.png”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leontine</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-563</link>
		<dc:creator>leontine</dc:creator>
		<pubDate>Thu, 22 Dec 2011 09:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-563</guid>
		<description>hi..
i have the same problem with Navin Seksaria
i already change the flex compiler to flash player 10
and i still got the problem
error message on the line
file.save(image.data, “chart.png”);

I am using flex builder3</description>
		<content:encoded><![CDATA[<p>hi..<br />
i have the same problem with Navin Seksaria<br />
i already change the flex compiler to flash player 10<br />
and i still got the problem<br />
error message on the line<br />
file.save(image.data, “chart.png”);</p>
<p>I am using flex builder3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flex</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-525</link>
		<dc:creator>flex</dc:creator>
		<pubDate>Wed, 09 Nov 2011 04:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-525</guid>
		<description>yes..that worked thanks..

can you tell how it can be done by manipulating BitmapData??</description>
		<content:encoded><![CDATA[<p>yes..that worked thanks..</p>
<p>can you tell how it can be done by manipulating BitmapData??</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-524</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Mon, 07 Nov 2011 08:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-524</guid>
		<description>Hi,

Yes, this is relatively straightforward to do.  The described technique works for any UIComponent, not just charts.  So, for example, you could pass a VBox with a label containing the title and the chart to ImageSnapshot.captureImage, thereby obtaining an image with the chart and a title.  There is an alternative, more involved, approach involving manipulation of BitmapData, but it sounds like the simple solution will work for you.

Graham</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Yes, this is relatively straightforward to do.  The described technique works for any UIComponent, not just charts.  So, for example, you could pass a VBox with a label containing the title and the chart to ImageSnapshot.captureImage, thereby obtaining an image with the chart and a title.  There is an alternative, more involved, approach involving manipulation of BitmapData, but it sounds like the simple solution will work for you.</p>
<p>Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marvin</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-523</link>
		<dc:creator>Marvin</dc:creator>
		<pubDate>Thu, 03 Nov 2011 14:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-523</guid>
		<description>Thanks, pretty straight forward and works without any glitches!!</description>
		<content:encoded><![CDATA[<p>Thanks, pretty straight forward and works without any glitches!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flex</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-521</link>
		<dc:creator>flex</dc:creator>
		<pubDate>Wed, 02 Nov 2011 10:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-521</guid>
		<description>Hi 

Is there any way to add the title to image.
for eg:&#039;Line Chart&#039; to Top of Image when printing the image?</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Is there any way to add the title to image.<br />
for eg:&#8217;Line Chart&#8217; to Top of Image when printing the image?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petetr R</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-502</link>
		<dc:creator>Petetr R</dc:creator>
		<pubDate>Thu, 06 Oct 2011 20:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-502</guid>
		<description>Fantastic, thanks!</description>
		<content:encoded><![CDATA[<p>Fantastic, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaveG</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-468</link>
		<dc:creator>DaveG</dc:creator>
		<pubDate>Wed, 27 Jul 2011 22:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-468</guid>
		<description>Great! Thanks!</description>
		<content:encoded><![CDATA[<p>Great! 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-418</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Tue, 29 Mar 2011 11:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-418</guid>
		<description>As mentioned in the post, this functionality is only available when targeting Flash Player 10.  Since you are using Flex Builder 3, I suspect the project is set to target Flash Player 9 as this will be the default.  To change check/change the Flash Player version, go to Flex Compiler in the project&#039;s properties and check/set the Adobe Flash Player Options section appropriately.

I hope this helps.

Regards,
Graham</description>
		<content:encoded><![CDATA[<p>As mentioned in the post, this functionality is only available when targeting Flash Player 10.  Since you are using Flex Builder 3, I suspect the project is set to target Flash Player 9 as this will be the default.  To change check/change the Flash Player version, go to Flex Compiler in the project&#8217;s properties and check/set the Adobe Flash Player Options section appropriately.</p>
<p>I hope this helps.</p>
<p>Regards,<br />
Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Navin Seksaria</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-417</link>
		<dc:creator>Navin Seksaria</dc:creator>
		<pubDate>Tue, 29 Mar 2011 10:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-417</guid>
		<description>The above code doesnt works for me.
It shows the error message on the line 
 file.save(image.data, &quot;chart.png&quot;);


as follows: 

1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.	


I am using flex builder3
It seems like there is no save method available in FileReference class.</description>
		<content:encoded><![CDATA[<p>The above code doesnt works for me.<br />
It shows the error message on the line<br />
 file.save(image.data, &#8220;chart.png&#8221;);</p>
<p>as follows: </p>
<p>1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.	</p>
<p>I am using flex builder3<br />
It seems like there is no save method available in FileReference class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clederson</title>
		<link>http://www.scottlogic.co.uk/blog/graham/2009/03/save-flex-chart-as-image/comment-page-1/#comment-416</link>
		<dc:creator>Clederson</dc:creator>
		<pubDate>Mon, 28 Feb 2011 16:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-416</guid>
		<description>Congratulations for this post!
Excellent explanation.
It came to be extremly useful to me!

[]&#039;s</description>
		<content:encoded><![CDATA[<p>Congratulations for this post!<br />
Excellent explanation.<br />
It came to be extremly useful to me!</p>
<p>[]&#8216;s</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-393</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Wed, 05 Jan 2011 12:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-393</guid>
		<description>Vijay,

I wouldn&#039;t like to say for certain, but I do not believe what you are wanting to do is possible.

Regards,
Graham</description>
		<content:encoded><![CDATA[<p>Vijay,</p>
<p>I wouldn&#8217;t like to say for certain, but I do not believe what you are wanting to do is possible.</p>
<p>Regards,<br />
Graham</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-215</link>
		<dc:creator>Graham Odds</dc:creator>
		<pubDate>Mon, 06 Dec 2010 15:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.scottlogic.co.uk/blog/graham/?p=3#comment-215</guid>
		<description>Hi Faizal,

If you are creating the .doc file in the Flex application then I would guess that this is possible, but the details of how to do this would depend on whatever library you are using to create the file.  

If you mean that you would like the images to be inserted into a .doc file the user has open on their machine then a different mechanism is required.  To do this you would have to base64 encode the image data and pass it to a JavaScript function using &lt;a href=&quot;http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ExternalInterface&lt;/a&gt; functionality.  The JavaScript function can then ensure that the image data is copied to the clipboard, e.g. using the &lt;a href=&quot;http://sites.google.com/site/yangshuai10/jquerycopyplugin&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;jQuery Copy plugin&lt;/a&gt;, thereby allowing the user to paste the image into their document.

I hope this helps.

Regards,
Graham</description>
		<content:encoded><![CDATA[<p>Hi Faizal,</p>
<p>If you are creating the .doc file in the Flex application then I would guess that this is possible, but the details of how to do this would depend on whatever library you are using to create the file.  </p>
<p>If you mean that you would like the images to be inserted into a .doc file the user has open on their machine then a different mechanism is required.  To do this you would have to base64 encode the image data and pass it to a JavaScript function using <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html" target="_blank" rel="nofollow">ExternalInterface</a> functionality.  The JavaScript function can then ensure that the image data is copied to the clipboard, e.g. using the <a href="http://sites.google.com/site/yangshuai10/jquerycopyplugin" target="_blank" rel="nofollow">jQuery Copy plugin</a>, thereby allowing the user to paste the image into their document.</p>
<p>I hope this helps.</p>
<p>Regards,<br />
Graham</p>
]]></content:encoded>
	</item>
</channel>
</rss>

