griffo Report post Posted March 13, 2008 Dear all, I recently started using Fusion Charts in my app and very nice there are to. (http://forum.openlaszlo.org/showthre...t=fusion+chart) However I can't work out how to catch mouse click events fired when a value is clicked on in the chart. I tried to apply the 'handling click events' info in the 'Guide for Flash Developers' in the online fusion documentation (http://www.fusioncharts.com/Docs/Index.html). But it looks like the event trys to launch a new page and a 404 error is captured. 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
FusionCharts Support Report post Posted March 14, 2008 Hi, Could you please check whether you have set registerWithJS =1 Share this post Link to post Share on other sites
griffo Report post Posted March 14, 2008 Hi, I hadn't added that, but have now, as an attribute to the chart node, but the same error is occuring. I tried to post some example working laszlo code in the code brackets, but it didn't show for some reason. I have attached the lzx file as FusionLaszloChart_Event_Save.txt 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"/> FusionLaszloChart_Event_Save.txt Share this post Link to post Share on other sites