amCharts support forum

You are not logged in.

Announcement

FORUM CLOSED! This forum is closed. We moved to a new place at Zendesk. Update your bookmarks.

Flash Charts: Flash Charts Bundle


#1 2012-02-07 00:05:12

mukul
Member

reloadAll method is undefined when cdn is used.

I am using amchart for graphs like line, column, bar, pie etc.
All my settings and swf files come from a cdn server. I have set the crossdomain.xml file in root accordingly.

My page setup is such that, my page loads with 1 graph initially. There are different options on the page which allow me to plot different kinds of data.
When user wants to see different data being plotted, the same graph is reloaded with different data.

With the cdn setup, my initial graph loads fine, but when i try to reload the graph with reloadAll method, the reloadAll method is undefined.

If i dont use cdn, and place the settings and swf files on the same server as my application, the reloadAll method is found and the chart loads properly. Only when i use cdn server, the reloadAll method is undefined.

Is there any other file, along with settings and swf, that i need to place on the cdn server?
Is the location of the file containing the reloadAll method relative?

Offline

 

#2 2012-02-07 03:39:54

martynasma
Administrator

Re: reloadAll method is undefined when cdn is used.

There is a Flash security restriction that prohibits any JavaScript interaction between Flash file and the page if they are loaded from different domains.

You can try setting the following parameter, but it's not guaranteed to work. Adobe has changed it's functionality several times:

Code:

so.addParam("AllowScriptAccess", "always");

Offline

 

#3 2012-02-07 06:28:10

mukul
Member

Re: reloadAll method is undefined when cdn is used.

Thanks for your quick reply.
I tried adding the param. Now i get access to the reloadAll method, but on calling that method an error is thrown in firebug which says:

"Error calling method on NPObject!"

Offline

 

#4 2012-02-08 05:41:02

martynasma
Administrator

Re: reloadAll method is undefined when cdn is used.

In that case it won't work I'm afraid. Sorry, we're not aware about any workarounds for this.

Offline

 

#5 2012-03-29 09:11:24

mukul
Member

Re: reloadAll method is undefined when cdn is used.

We have a workaround by modifying the source of the SWF files. The modification is as we need to add a line in flash code

Code:

System.security.allowDomain( "www.mysite.com" )

Can you please tell how to get source files?

We've purchased amCharts bundle: pie+line+column+xy tools (single site license).

Offline

 

#6 2012-03-30 02:40:52

martynasma
Administrator

Re: reloadAll method is undefined when cdn is used.

The source code is available only with the purchase of OEM / SaaS license.

Please contact us directly at info@amcharts.com if you would wish to discuss the possibility to upgrade your license.

Offline

 

© amCharts | Forum engine: PunBB