howke Report post Posted July 28, 2010 (edited) 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 Edited July 28, 2010 by Guest Share this post Link to post Share on other sites
FusionCharts Support Report post Posted July 28, 2010 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.fusioncharts.com/forum/FindPost26895.aspx Share this post Link to post Share on other sites
howke Report post Posted July 30, 2010 Thank you very much! It's worked well . FusionMaps is so cool! Share this post Link to post Share on other sites
Sanjukta Report post Posted July 30, 2010 Hi, You are welcome. Glad that your issue is resolved. Happy FusionCharting! Share this post Link to post Share on other sites
howke Report post Posted July 31, 2010 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. Share this post Link to post Share on other sites
Sanjukta Report post Posted July 31, 2010 Hi, 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. Share this post Link to post Share on other sites
howke Report post Posted July 31, 2010 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. Share this post Link to post Share on other sites