ctaleo Report post Posted January 28, 2010 I Downloaded your free trail to see is this would be an option that my company can use. I am trying to build a FLASH demo that contains about 30 different charts (4 types of charts different values), ideally I would like for the charts to be dynamically generated with XML or AS2/AS3. All the files I downloaded from your site seem to be broken (so that is not good) so I have no reference to work with I would like to play with it and see if I can fully customize it by myself, because I am the decision maker in terms of purchasing this product. this is the AS code in the file /** * This keyframe contains the Actions required to load a FusionCharts chart in your Flash movie. * * We've set the FPS of this movie to 120 for smooth animations. * Depending on your requirements, you can set any FPS. FusionCharts * renders time based animations, so the length of animation would stay * same. Only the smoothness would vary. */ //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.Column2DChart; // ------------- XML Data for the chart -------------- // //FusionCharts necessarily needs its data in XML format. //So, if you've data in arrays, forms, recordsets, etc., you //first need to convert it into XML. Only then would you be able //to use the charts. //Here, we're hard-coding an XML data document for demo. //In your applications, this XML data could be dynamically //built at run time using string concatenation or XML //Object. //Generate the XML data. We hide the border of chart, set background //alpha as 0 (for transparency) and then set palette to 2. var strXML:String = ""; //Add simple data for demo. strXML = strXML + ""; strXML = strXML + ""; strXML = strXML + ""; strXML = strXML + ""; strXML = strXML + ""; //FusionCharts chart classes accept XML data as XML Object //and not XML String. //So, if you've an XML string, first create an XML object from it //and then pass to the chart. We do the same. var xmlData:XML = new XML(strXML); // --------------------------------------------------- // // -------------- Actual Code to create the chart ------------// //To create a chart, you first need to create an empty movie clip to act as chart holder. var chartContainerMC:MovieClip = this.createEmptyMovieClip("ChartHolder",1); //Now, instantiate the chart using Constructor function of the chart. /** * @param targetMC Movie clip reference in which * the chart will create its own movie clip.s * @param depth Depth inside parent movie clip in which * the chart will create its own movie clips. * @param width Width of chart * @param height Height of chart * @param x x Position of chart * @param y y Position of chart * @param debugMode Boolean value indicating whether the chart * is in debug mode. * @param lang 2 Letter ISO code for the language of application * messages. Depends on what data you've fed. * @param scaleMode Scale mode of the movie - noScale or exactFit */ var myFirstChart:Column2DChart = new Column2DChart(chartContainerMC, 1, 450, 325, 20, 15, false, "EN", "noScale"); //Convey the XML data to chart. myFirstChart.setXMLData(xmlData); //Draw the chart myFirstChart.render(); //Stop stop(); however the compressed file I downloaded does not have the following files, and the file path seems to be set up incorrectly: - com/fusioncharts/includes/LoadingFunctions.as - com/fusioncharts/includes/AppMessages.as - com.fusioncharts.core.charts.Column2DChart; Help would be greatly appreciated CF Share this post Link to post Share on other sites
Guest Madhumita Report post Posted February 1, 2010 Hello, Source code is not present in this version. Only Enterprise License contains both the .fla and .as files. Developer/Professional/Site license contains .as files only, which can be used to embed the charts in your Flash movies. Share this post Link to post Share on other sites
ctaleo Report post Posted February 1, 2010 is this because it it a trial? I need to test this before buying the full version Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 1, 2010 Hi, All the functionalities of the Trial version of FusionCharts/FusionWidgets/FusionMaps/PowerCharts are as same as that of a Licensed version, only with a water-mark on it. Share this post Link to post Share on other sites
Guest Madhumita Report post Posted February 1, 2010 Hello, The trial version does not contain the source codes. But the chart functionalities are present. Share this post Link to post Share on other sites