Pallav

I want to load an external XML file inside my chart loaded in a Flash movie/application

Recommended Posts

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

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

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