Hi.
I'm brand new to Fusion Charts, and I'm trying to get MyFirstChart working with an external XML doc, rather than what's hardcoded in Flash. This will be for a standalone desktop application, so it will not be run through a web browser.
I got the chart operational as a Multi-Series 3DChart with this hardcoded:
var strXML:String = "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
strXML = strXML + "";
//FusionCharts chart classes accept XML data as XML Object
//and not XML String.
//So, if you've an XML string, first create an XML object from it
//and then pass to the chart. We do the same.
var xmlData:XML = new XML(strXML);
// --------------------------------------------------- //
// -------------- Actual Code to create the chart ------------//
//To create a chart, you first need to create an empty movie clip to act as chart holder.
var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder",1);
//Now, instantiate the chart using Constructor function of the chart.
var myFirstChart:MSColumn3DChart = new MSColumn3DChart(mc_chartHolder, 1, 645, 436, 0, 0, false, "EN", "noScale");
//Convey the XML data to chart.
myFirstChart.setXMLData(xmlData);
//Draw the chart
myFirstChart.render();
//Stop
stop();
Sorry to bug you guys with something so basic, but I am stuck stuck stuck. So how do I adjust the actionscript to access an external XML?