naransim

Members
  • Content count

    2
  • Joined

  • Last visited

About naransim

  • Rank
    Forum Newbie
  1. Loading data from external XML file

    Hello again, I managed to make it work, not loading an xml but putting the xml code inside flash: var strXML:String = "pasteheretheXMLfilecontentwithnospaces"; var xmlData:XML = new XML(strXML); var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder",1); var myChart:MSColumn3DChart = new MSColumn3DChart(chartContainerMC, 1, 450, 325, 5, 38, false, "EN", "noScale"); myChart.setXMLData(xmlData); myChart.render(); the thing is that the xml should be with no spaces, I've made the same for the xml file but it didn't work, it has to be done inside flash.....hope this work for you too.
  2. Loading data from external XML file

    Hello, I made some changes to the code: XMLFile = "datos.xml"; var xmlData:XML = new XML(); xmlData.ignoreWhite = true; xmlData.load(XMLFile); xmlData.onLoad = function(exito) { if (exito){ trace(xmlData) } else trace("Where is " + XMLFile + "?"); }; var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1); var chart1:MSColumn3DChart = new MSColumn3DChart(chartContainer1MC, 1, 380, 325, 20, 15, true, "EN", "noScale"); chart1.setXMLData(xmlData); chart1.render(); stop(); I get the debugger to work, the xml traces perfectly, but syill no char snowing...please try this an see the debuging message: Info: Chart loaded and initialized. Initial Width: 380 Initial Height: 325 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.0.2 Chart Type: Multi Series 3D Column Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES YAXISVALUES DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT TOOLTIP VLINES LEGEND ERROR: No data to display. There isn't any node/element in the XML document. Please check if your dataURL is properly URL Encoded or, if XML has been correctly embedded in case of dataXML. No Data to Display: No data was found in the XML data document provided. Possible cases can be: There isn't any data generated by your system. If your system generates data based on parameters passed to it using dataURL, please make sure dataURL is URL Encoded. You might be using a Single Series Chart .swf file instead of Multi-series .swf file and providing multi-series data or vice-versa.