Sign in to follow this  

Fusionwidget In Flash (.fla File)

Recommended Posts

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/"

#include "com/fusioncharts/includes/"

//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.



// ------------- 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 = new, 1, 380, 325, 20, 15, false, "EN", "noScale");

//Convey the XML data to chart.



//Draw the charts






I get the following compiler error: Location: Scene=Scene 1, layer=Layer1, frame=1, Line=43 Description: The class or interface '' could not be loaded


The "com" folder is in the same folder as the .fla and .swf. The .fla file is attached


Please help!



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this