velepost

Members
  • Content count

    1
  • Joined

  • Last visited

About velepost

  • Rank
    Forum Newbie
  1. There is no method with the name 'setXMLData'

    Hello, I have the same problem with Spline2DChart class. In the same movie using SparkLineChart class, which is working fine and Spline2DChart with error "There is no method with the name 'setXMLData'. chart2.setXMLData (channelChartXML);" com directory is in root of my fla file and all paths for import are ok. It is very important for me to finish this job ASAP but on this issue I've spend all day.... even this simply code returns error : #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" import com.fusioncharts.core.charts.Spline2DChart; var strXML1:String =""; strXML1+=""; strXML1+=""; strXML1+=""; strXML1+=""; strXML1+=""; strXML1+=""; strXML1+=""; var xmlData1:XML = new XML(strXML1); var ccote:MovieClip=this.createEmptyMovieClip("mov",1); var chart2:Spline2DChart = new Spline2DChart (ccote, 2, chaW, 300, 5, 5, false, "EN","noScale"); chart2.setXMLData (xmlData1); chart2.render (); stop(); //----------------------------------- Any advice? ------------------------> Moved step forward .... and debug mode giving me following data: Info: Chart loaded and initialized. Initial Width: 521.9 Initial Height: 300 Scale Mode: noScale Debug Mode: Yes Application Message Language: EN Version: 3.1.1 Chart Type: Single Series 2D Spline Chart Chart Objects: BACKGROUND CANVAS CAPTION SUBCAPTION YAXISNAME XAXISNAME DIVLINES VDIVLINES YAXISVALUES HGRID VGRID DATALABELS DATAVALUES TRENDLINES TRENDVALUES DATAPLOT ANCHORS TOOLTIP VLINES VLINELABELS XML Data: 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.