Loading data from external XML file
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Loading data from external XML file Expand / Collapse
Author
Message
Posted 2/28/2007 12:39:41 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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 chart1ie3DChart = 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.
Post #428
Posted 3/13/2007 11:54:06 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!
Post #514
Posted 3/13/2007 12:09:00 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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!
Post #515
Posted 3/14/2007 6:14:07 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts 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
Post #523
Posted 10/21/2008 9:35:34 AM
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum 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... ?

Post #9306
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 6:26pm


Execution: 0.047.