Sign in to follow this  
chris87

Connection Error In fusion charts AS 3 /Flex

Recommended Posts

I am new to using fcharts. I have installed the charts, create and render them dynamically inside a tab navigator. When I have rendered lets say 3 charts on different tabs , and altinate between the tabs, then I get the following error.

 

TypeError: Error #2007: Parameter connectionName must be non-null.
at flash.net::LocalConnection/send()
at com.fusioncharts.components::FusionCharts/resizer()[D:\Repository\FusionCharts For Flex 1.3\Development\Flash_Builder_4\source\com\fusioncharts\components\FusionCharts.as:753]
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
 
private function createFusionChart(chartXML:XML):FusionCharts{
var fusionChart:FusionCharts = new FusionCharts();
fusionChart.FCChartType = "MSLine";
fusionChart.FCData(chartXML);
fusionChart.FCFolder = "../fusioncharts";
fusionChart.percentWidth = 100;
fusionChart.percentHeight = 100;
fusionChart.x = 5;
fusionChart.y = 5;
fusionChart.FCFlexFunctionsObject = (new MyFunctions(this.gcPersitenceSyncoriniser));
fusionChart.FCParams(getParameters(false));
fusionChart.FCRender();
return fusionChart;
}

 I then pass this to a vBox, and and a panel ....etc .

YOur help would be much appreciated.

Edited by chris87

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum.

 

Please let us know the following :

 

 

1. If you are using SWF files from FusionCharts for Flex pack
 
2. If you are using correct FusionCharts.swc for Flex SDK version. Separate SWC file exists for major Flex SDK versions (2,3,4). If you are using FusionCharts.swc of Flex SDK 3 in an application running in Flex SDK 4, it will not work.

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