|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/5/2007 1:21:09 AM
Posts: 1,
Visits: 6
|
|
The Knowledge Base Q10068 - "HOWTO: I want to load an external XML file inside my chart loaded in a Flash movie/application" (http://www.fusioncharts.com/KB/article.aspx?id=10068&cNode=1F3K5Y) shows how to load data from external file, but id doesnt works on my SWF file.
The source is:
--------------
#include "com/fusioncharts/includes/LoadingFunctions.as"
#include "com/fusioncharts/includes/AppMessages.as"
import com.fusioncharts.core.charts.Pie3DChart;
XMLFile = "Pie3D.xml";
var xmlData:XML = new XML();
xmlData.load(XMLFile);
xmlData.onLoad = function(exito) {
if (exito){
trace(xmlData)
var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1);
var chart1 ie3DChart = new Pie3DChart(chartContainer1MC, 1, 380, 325, 20, 15, false, "EN", "noScale");
chart1.setXMLData(xmlData);
chart1.render();
}
else trace("Where is " + XMLFile + "?");
};
stop();
--------
PD: the smile is ": P", [ code ][ / code ] doesnt works with the emoticons.
If you publish the movie the charts doesnt appears on the movie.
Any suggestion?
Thanks.
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/16/2007 5:45:44 AM
Posts: 3,
Visits: 4
|
|
having the same issue as Tex. anyone have an answer for us? Tex did you solve this issue?
etho
newbie flash guy!
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 3/16/2007 5:45:44 AM
Posts: 3,
Visits: 4
|
|
update to previous post:
wanted to point out that I would like to make the graph use dataURL rather than a flat xml file.
thanks
newbie flash guy!
|
|
|
|
|
FusionCharts Team
      
Group: Administrators
Last Login: Yesterday @ 8:20:12 AM
Posts: 2,194,
Visits: 521
|
|
You'll need to load the XML file in your custom XML objects in Flash and then pass that XMl to the loaded chart.
Thanks, Pallav Nadhani FusionCharts Team
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 11/27/2008 5:02:07 AM
Posts: 55,
Visits: 109
|
|
can u show me a sample to load a external xml in flash... ?
|
|
|
|