davidoff Report post Posted March 14, 2007 Hello, I made the tutorial MyFirstChart. In your example ( MyFirstChart.fla) you inserted the code into the actionscript code! I would like to call since my .fla a file xml external. You can give me an example of code svp! My file xml is called Data2.xml Thank you very much I bought fusioncharts some days ago Lartigue David Share this post Link to post Share on other sites
Pallav Report post Posted March 14, 2007 Attached please find an example. Make sure that you've Data.xml and the chart .as files present in the proper location, when you compile this movie. ChartLoadTest.zip Share this post Link to post Share on other sites
davidoff Report post Posted March 14, 2007 OK, I try, thank you very much Share this post Link to post Share on other sites
davidoff Report post Posted March 14, 2007 it's ok, very very thank you very much Share this post Link to post Share on other sites
davidoff Report post Posted March 14, 2007 It works with the graph Column2DChart, now if I want to make the same thing with MSColumnLine3D that does not work... i tried this code: #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" import com.fusioncharts.core.charts.MSColumnLine3D; //----------------------------// var myXML:XML = new XML(); myXML.load("../Data_pib_line.xml"); myXML.onLoad = function() { renderChart(); }; function renderChart() { var c1:MovieClip = this.createEmptyMovieClip("Chart1", 1); var chart1:MSColumnLine3D = new MSColumnLine3D(c1, 1, 919, 400, 52.5, 170, false, "EN", "noScale"); chart1.setXMLData(myXML); chart1.render(); } Share this post Link to post Share on other sites
davidoff Report post Posted March 14, 2007 sorry ! i have found, I had to put MSColumnLine3DChart!!! Share this post Link to post Share on other sites