Trevor Report post Posted December 14, 2011 I'm trying to use the Pyramid FusionWidget within Flash (a .fla project). I've followed the tutorial (though this was for a FusionChart rather than a FusionWidget), but I'm unable to get it to work. Please see my ActionScript below: //You first need to include the following two files in your movie. //These two files contain pre-loading functions and application //messages for the chart. //Note: If you're loading multiple charts in your Flash movie, you //do NOT need to include these files for each each. You can put these //lines in the main timeline, so that it gets loaded only once. #include "com/fusioncharts/includes/LoadingFunctions.as" #include "com/fusioncharts/includes/AppMessages.as" //To create the chart, you now need to import the Class of the //chart which you want to create. All charts are present in the package //com.fusioncharts.core.charts (Download Package > SourceCode folder) //If you're using multiple charts, you can import all the requisite //chart classes in the main timeline of your movie. That ways, you //wouldn't have to import the chart classes everytime you wish to use. import com.fusioncharts.core.charts.PyramidChart.as; // ------------- XML Data for the charts -------------- // //Data for chart 1 var strXML1:String = "<chart showBorder='0' bgAlpha='0,0' palette='1' caption='Hourly Working Rate' numberPrefix='>"; //Add simple data for demo. strXML1 = strXML1+"<set name='John' value='32' />"; strXML1 = strXML1+"<set name='Mary' value='65' />"; strXML1 = strXML1+"<set name='Michelle' value='29' />"; strXML1 = strXML1+"<set name='Cary' value='43' />"; strXML1 = strXML1+"</chart>"; var xmlData1:XML = new XML(strXML1); //Data for Chart 2 var strXML2:String = "<chart showBorder='0' bgAlpha='0,0' palette='1' caption='Hours Worked Last week' canvasPadding='20'>"; //Add simple data for demo. strXML2 = strXML2+"<set name='John' value='49' />"; strXML2 = strXML2+"<set name='Mary' value='34' />"; strXML2 = strXML2+"<set name='Michelle' value='61' />"; strXML2 = strXML2+"<set name='Cary' value='40' />"; strXML2 = strXML2+"</chart>"; var xmlData2:XML = new XML(strXML2); // --------------------------------------------------- // // -------------- Actual Code to create the chart ------------// //Create movie clips required for both the charts var chartContainer1MC:MovieClip = this.createEmptyMovieClip("ChartHolder1", 1); var chartContainer2MC:MovieClip = this.createEmptyMovieClip("ChartHolder2", 2); //Now, instantiate the charts using Constructor function of the chart. var chart2:PyramidChart.as = new PyramidChart.as(chartContainer2MC, 1, 380, 325, 20, 15, false, "EN", "noScale"); //Convey the XML data to chart. chart1.setXMLData(xmlData1); chart2.setXMLData(xmlData2); //Draw the charts chart1.render(); chart2.render(); //Stop stop(); I get the following compiler error: Location: Scene=Scene 1, layer=Layer1, frame=1, Line=43 Description: The class or interface 'PyramidChart.as' could not be loaded The "com" folder is in the same folder as the .fla and .swf. The .fla file is attached Please help! Thanks Share this post Link to post Share on other sites