Dustwo Report post Posted May 25, 2011 Hello. Fusion in a flash chart to bring up the charts were created. However, the chart type ScrollColumn2D Bring more than once when a chart is not drawn. 1. Load ScrollColumn2D chart 2. remove chart object 3. Load ScrollColumn2D chart AGAIN! <- problem CODE. import flash.display.MovieClip; import flash.events.MouseEvent; import com.fusioncharts.components.FusionCharts; // --- var $container :MovieClip = new MovieClip(); addChild($container); // --- btnLoadChart.addEventListener(MouseEvent.MOUSE_UP, handlerLoadChart); // --- function handlerLoadChart(e:MouseEvent):void { // remove previous charts all while ($container.numChildren > 0) { $container.removeChildAt(0); } // create a new chart #1 var chart1 :FusionCharts = new FusionCharts(); chart1.FCDebugMode = true; chart1.FCFolder = "fusioncharts"; chart1.FCChartType = "ScrollColumn2D";// <- chart1.FCDataURL = "data.xml"; chart1.FCChartWidth = 530; chart1.FCChartHeight = 360; chart1.FCRender(); chart1.x = 10; chart1.y = 10; $container.addChild(chart1); // create a new chart #2 var chart2 :FusionCharts = new FusionCharts(); chart2.FCDebugMode = true; chart2.FCFolder = "fusioncharts"; chart2.FCChartType = "ScrollColumn2D";// <- chart2.FCDataURL = "data.xml"; chart2.FCChartWidth = 530; chart2.FCChartHeight = 360; chart2.FCRender(); chart2.x = 570; chart2.y = 10; $container.addChild(chart2); } test-sample.zip Share this post Link to post Share on other sites
Sanjukta Report post Posted May 27, 2011 Hi, We have tested the attached setup and found that you are using the core FusionCharts AS2 SWF files. Please note that you would need to use the SWF files from FusionCharts for Flex pack which are specially compiled to support Flex and AS3 application. You can download the FusionCharts for Flex pack with the help of the following link. http://www.fusioncharts.com/flex/download/ In case you wish to avail the license for FusionCharts for Flex, please mail us with your request at [email protected]. Hope this helps. Share this post Link to post Share on other sites