Hi,
I'm trying to use FusionCharts with Flex using the SWFLoader. When I load one chart it works fine, but when I try loading two charts both are drawn partially. Is this possible with FusionCharts?
My test code is the following:
//-----------------------------------------------------------------------------------
// The container for the two panels with the two charts.
hbox = new HBox();
// The first chart.
panel1 = new Panel();
swfLoader1 = new SWFLoader();
swfLoader1.id = "chart1";
swfLoader1.source =
"FCF_Line.swf
?noCache=1
&id=1
&chartWidth=400
&chartHeight=300
&dataXML=
";
panel1.addChild(swfLoader1);
// The second chart.
panel2 = new Panel();
swfLoader2 = new SWFLoader();
swfLoader1.id = "chart2";
swfLoader2.source =
"FCF_Line.swf
?noCache=2
&id=2
&chartWidth=400
&chartHeight=300
&dataXML=
";
panel2.addChild(swfLoader2);
hbox.addChild(panel1);
hbox.addChild(panel2);
Application.application.addChild(hbox);
//-----------------------------------------------------------------------------------
Thank you,
Gabriel