FusionCharts Forum: How the demo for flash developers to receive xml by dynamically? - FusionCharts Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How the demo for flash developers to receive xml by dynamically? How the demo for flash developers to receive xml by dynamically?

#1 User is offline   howke 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-July 10

Posted 28 July 2010 - 02:43 AM

Nowadays ,I found FusionCharts is a good produce for my web maps and charts.



I study the FusionMaps v3.1 doc , I hava a question when I study the "for flash developer" part.



There are hard-coding an XML data document for demo flash.

But when I put the flash in my localhost html,the localhost xml's data is not play .


         var map = new FusionMaps("MyFirstMap.swf", "Map1Id", "750", "400", "0", "0");

         map.setDataURL("FirstData.xml"); 

         map.render("mapdiv");







The MyFirstMap.swf is my modified flash ,and the FirstData.xml data is a small different compare the flash's xml strings .



Why this ? What can I do ?

waiting for your answer
0

Other Replies To This Topic

#2 User is offline   Sudipto Choudhury 

  • Supreme Being
  • Group: Administrators
  • Posts: 1886
  • Joined: 19-March 07

Posted 28 July 2010 - 09:06 AM

Hi,



Could you please let us know, whether you wish to implement a map in Flash movie itself or embed exising map swf file in web page? In case you wish it as Flash movie you need to embed the swf as you embed a simple flash movie in web page.



If you wish to load data from external file you need to modify the code a bit.



Here is an example that loads data for chart. You can always port the same for map.



http://www.fusioncha...dPost26895.aspx
Regards,

Sudipto Choudhury
FusionCharts Team

Follow us on Twitter

I code, therefore I am.

0

Other Replies To This Topic

#3 User is offline   howke 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-July 10

Posted 30 July 2010 - 05:35 AM

Thank you very much! It's worked well . FusionMaps is so cool!
0

Other Replies To This Topic

#4 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1593
  • Joined: 15-March 10

Posted 30 July 2010 - 06:05 AM

Hi,

You are welcome. :)

Glad that your issue is resolved.

Happy FusionCharting! :)

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

#5 User is offline   howke 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-July 10

Posted 31 July 2010 - 12:40 AM

I have another question.

The flash moive was become the .swf file finanlly.

Can we use the Javascript function "setDataXML()" to load the xml data??



Thank you again.
0

Other Replies To This Topic

#6 User is offline   Sanjukta 

  • Supreme Being
  • Group: Administrators
  • Posts: 1593
  • Joined: 15-March 10

Posted 31 July 2010 - 01:37 AM

Hi,

Quote

Can we use the Javascript function "setDataXML()" to load the xml data??

Yes, you can use setDataXML() method to load your data.

For further details on the above, please refer to the following link:
Ref.- http://www.fusioncharts.com/maps/docs/Contents/JS_setDataXML.html

Hope this helps. :)

Help us improve our documentation with your precious feedback at:
http://documentation...sioncharts.com/

Thanks,
Sanjukta

Follow us @Twitter!
0

Other Replies To This Topic

#7 User is offline   howke 

  • Forum Newbie
  • Group: Members
  • Posts: 4
  • Joined: 28-July 10

Posted 31 July 2010 - 10:42 PM

Yes. I know th javasript function "setDataXML()" can load the xml data by your default map flash. such as "WorldMaps" or "USMaps".

But my map flash is I created myself through the "CodeFlashExamples" folder's files.



I try this way .use the setDataXML() function. but was not play.
0

Other Replies To This Topic

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic