aslanlotter Report post Posted June 11, 2007 I am not sure what I am doing wrong? #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" // import com.fusioncharts.core.charts.Column3DChart; // ------------- XML Data for the chart -------------- // var myXML:XML = new XML(); myXML.load("Column3D_virus2007.xml"); myXML.onLoad = function(success) { if (success) { var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder", 1); // var myFirstChart:Column3DChart = new Column3DChart(chartContainerMC, 1, 450, 325, 20, 15, false, "EN", "noScale"); //Convey the XML data to chart. myFirstChart.setXMLData(myXML); //Draw the chart myFirstChart.render(); }else{ trace("warning")} }; // stop(); Nothing get displayed? Can somebody help? Best, Martin Share this post Link to post Share on other sites
Pallav Report post Posted June 12, 2007 Martin, Please try debugging the movie to see what variables and objects are being instantiated? Also, what version of Flash are you compiling in? Share this post Link to post Share on other sites
aslanlotter Report post Posted June 12, 2007 i am using flash 8 as2! Share this post Link to post Share on other sites
Pallav Report post Posted June 13, 2007 Please send us a stripped down version of your .fla. We'll debug it for you. Share this post Link to post Share on other sites
aslanlotter Report post Posted June 18, 2007 (edited) here you go - thx testing.zip Edited June 18, 2007 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted June 19, 2007 The scoping of code in your .fla is wrong. When you write: myXML.onLoad = function(success) { if (success) { var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder", 1); the this here refers to myXML - and not _root. Please fix all the scoping errors. Share this post Link to post Share on other sites
aslanlotter Report post Posted June 19, 2007 thx a lot for the help - it works now #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" // import com.fusioncharts.core.charts.Column3DChart; // ------------- XML Data for the chart -------------- // var myXML:XML = new XML(); myXML.load("Column3D_virus2007.xml"); myXML.onLoad = function(success) { if (success) { var chartContainerMC:MovieClip = _root.createEmptyMovieClip("ChartHolder", 1); // var myFirstChart:Column3DChart = new Column3DChart(chartContainerMC, 1, 450, 325, 20, 15, false, "EN", "noScale"); //Convey the XML data to chart. myFirstChart.setXMLData(myXML); //Draw the chart myFirstChart.render(); }else{ trace("warning")} }; // stop(); Share this post Link to post Share on other sites