Sign in to follow this  
howke

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

Recommended Posts

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 by Guest

Share this post


Link to post
Share on other sites

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

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

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

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