Sign in to follow this  
griffo

laszlo how to save image

Recommended Posts

hello,

 

 

 

I recently started using Fusion Charts in my app and they're still very nice to. (http://forum.openlaszlo.org/showthre...t=fusion+chart)

 

 

 

As well as not being able to catch mouse click events (see my previous post) I am also having trouble saving the image.

 

 

 

I tried to apply the 'saving chart as image' info in the online fusion documentation (http://www.fusioncharts.com/Docs/Index.html). I created a script/function to call the chart.saveAsImage() function, but it is not recognized.

 

 

 

Has anyone got this to work in laszlo?

 

 

 

thanks

 

 

 

G

 














save chart



















     this.loadChart();







     var mc = this.getMCRef();

     mc._lockroot = true;

     var p = new LzParam();

     p.addValue("dataXML", this.chartDataset.childNodes[0].serialize(), true);

     p.addValue("chartWidth", this.width);

     p.addValue("chartHeight", this.height);

     if (this.protectStage)

       p.addValue("Stage", null);

     mc.loadMovie(this.chartSwf + "?" + p.toString());

	Debug.write("should have created chart");





     this.loadChart();


















































































              align="center"

              valign="top"

              width="600"

              height="400"

              protectStage="true"

              chartDataset="fusionLineChartDS"

              chartSwf="../../FusionCharts/Line.swf"/>





Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this