varoon

Load swf into another swf

Recommended Posts

the provided code is....

 

 

 

 

 

// ------------- XML Data for the chart -------------- //

 

//Data for chart 1

 

var strXML1:String = "";

 

//Add simple data for demo.

 

strXML1 = strXML1+"";

 

strXML1 = strXML1+"";

 

strXML1 = strXML1+"";

 

strXML1 = strXML1+"";

 

strXML1 = strXML1+"";

 

var xmlData1:XML = new XML(strXML1);

 

// Data for Chart 2

 

var strXML2:String = "";

 

//Add simple data for demo.

 

strXML2 = strXML2+"";

 

strXML2 = strXML2+"";

 

strXML2 = strXML2+"";

 

strXML2 = strXML2+"";

 

strXML2 = strXML2+"";

 

var xmlData2:XML = new XML(strXML2);

 

// --------------------------------------------------- //

 

// -------------- Actual Code to create the chart ------------//

 

//Create movie clips required for both the charts

 

var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1);

 

var chartContainer2MC:MovieClip = this.createEmptyMovieClip("ChartHolder2", 2);

 

//Now, instantiate the charts using Constructor function of the chart.

 

var chart1:Column2DChart = new Column2DChart(chartContainer1MC, 1, 380, 325, 20, 15, false, "EN", "noScale");

 

var chart2:Line2DChart = new Line2DChart(chartContainer2MC, 1, 380, 325, 440, 15, false, "EN", "noScale");

 

//Convey the XML data to chart.

 

chart1.setXMLData(xmlData1);

 

chart2.setXMLData(xmlData2);

 

//Draw the charts

 

chart1.render();

 

chart2.render();

 

//Stop

 

stop();

 

 

 

 

 

i need to load external xml data... how do i ???

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