Sign in to follow this  
abhi0710

Upgrade Issue In Actiona Script Instantiating Charts

Recommended Posts

Hi , We are upgrading to enterprise version 3.2 of FusionCharts.

We are having a custom ActionScript file which instantiates Column@dChart and com.fusioncharts.core.charts.Line2DChart. This ws compiling fne till now but now gives error saying

 

 

com/fusioncharts/helper/ObjectManager.as(53): characters 7-11 : type error Object should be String.

 

I noticed after removing most of the code that just the declarion itself is throwing this exception.

 

private var chart:Line2DChart;

 

Looking forward to some help.

 

Thanks,

Abhinav

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

Could you please confirm whether you are using ActionScript 2 or 3?

 

FusionCharts will work with ActionScript 2.

 

Awaiting for your response.

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Thanks for your response.

 

Please make sure you have all the source files(.as) available with you.

 

In case the problem persists, please send us the file to look into the issue.

 

Hope this helps.

Share this post


Link to post
Share on other sites

We are using mtasc to build fusion charts . Command like this in ant throws a similar exception

 

<mtasc

srcfile="com/fusioncharts/core/charts/Column2DChart.as"

inputswf="fusioncharts/swf/Column2D.swf"

outputswf="${flash.lg.flashbuild}/Column2D.swf"

mx="true" msvc="true" version="8" group="true" strict="false"

failonerror="${failonerror}">

 

<classpath>

<path>

<pathelement location="fusioncharts/src"/>

</path>

</classpath>

</mtasc>

 

we have copied all the source files from sourcecode folder.

 

thanks,

Abhinav

Share this post


Link to post
Share on other sites

We have not yet tried with mtasc. However, it seems that you are trying to compile Column2DChart.as which is just a class file and not the main source. You would need to use this class in another Fla file and then compile it.

 

You can try the samples like MyFirstChart.fla from the Code > FlashExamples folder of the download pack.

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