World Maps » Zoom World Map

ID #1008

How to pass real time data into the flash map through a dynamic xml file instead of the default xml file so that the data the map shows is updated constantly every time a page is viewed or refreshed?

Real time data can be made to display on our flash map by passing the data to a dynamic xml file.

If you are using the SWFObject method,  please refer the following sample code:

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
	var flashvars= {
        xmlfile1: "locator_map_script.php",
	};
	var params = {
	wmode: "transparent"
	};
	swfobject.embedSWF("locator_map.swf", "Map", "600", "300", "9.0.0", "", flashvars, params);
</script>
<div id="Map">&nbsp;</div>

If you are using the non-SWFObject method, please refer the following sample code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="600" height="300" id="world" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="locator_map.swf" />
<param name=FlashVars value="xmlfile1=locator_map_script.php">
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="locator_map.swf?xmlfile1=locator_map_script.php" quality="high" bgcolor="#FFFFFF" width="600" height="300" name="world" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


Tags: -

Related entries:

Last update: 2011-09-10 19:42
Author: Fla-shop Team
Revision: 1.4

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry