You are not logged in.
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
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:
so.addParam("AllowScriptAccess", "always");Offline
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
In that case it won't work I'm afraid. Sorry, we're not aware about any workarounds for this.
Offline
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
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
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