#include "com/fusionmaps/includes/LoadingFunctions.as"
#include "com/fusionmaps/includes/AppMessages.as"
import com.fusionmaps.maps.WorldMap;
import com.fusionmaps.maps.USAMap;
var strXML1:String = "<map bgAlpha='0' showCanvasBorder='0' includeNameInLabels='0' includeValueInLabels='1' numberSuffix=' Mn.' labelSepChar=': ' baseFontSize='9' legendPosition='BOTTOM' legendShadow='0'>";
strXML1 = strXML1 + "<colorRange>";
strXML1 = strXML1 + "<color minValue='0' maxValue='500' displayValue='Sparsely Populated' color='A7E9BC' />";
strXML1 = strXML1 + "<color minValue='500' maxValue='1000' displayValue='Well Populated' color='FFFFCC' />";
strXML1 = strXML1 + "<color minValue='1000' maxValue='5000' displayValue='Densely Populated' color='FF9377' />";
strXML1 = strXML1 + "</colorRange>";
strXML1 = strXML1 + "<data>";
strXML1 = strXML1 + "<entity id='NA' value='515' />";
strXML1 = strXML1 + "<entity id='SA' value='373' />";
strXML1 = strXML1 + "<entity id='AS' value='3875' />";
strXML1 = strXML1 + "<entity id='EU' value='727' />";
strXML1 = strXML1 + "<entity id='AF' value='885' />";
strXML1 = strXML1 + "<entity id='AU' value='32' />";
strXML1 = strXML1 + "</data>";
strXML1 = strXML1 + "</map>";
var strXML2:String = "<map bgAlpha='0' showCanvasBorder='0' labelSepChar=': ' baseFontSize='9' legendPosition='BOTTOM' legendShadow='0'>";
strXML2 = strXML2 + "<colorRange>";
strXML2 = strXML2 + "<color minValue='0' maxValue='1000000' displayValue='Sparsely Populated' color='A7E9BC' />";
strXML2 = strXML2 + "<color minValue='1000000' maxValue='5000000' displayValue='Well Populated' color='FFFFCC' />";
strXML2 = strXML2 + "<color minValue='5000000' maxValue='100000000' displayValue='Densely Populated' color='FF9377' />";
strXML2 = strXML2 + "</colorRange>";
strXML2 = strXML2 + "<data>";
strXML2 = strXML2 + "<entity id='Al' value='4557808' />";
strXML2 = strXML2 + "<entity id='Ak' value='663661' />";
strXML2 = strXML2 + "<entity id='Az' value='5939292' />";
strXML2 = strXML2 + "<entity id='Ar' value='2779154' />";
strXML2 = strXML2 + "<entity id='Ca' value='36132147' />";
strXML2 = strXML2 + "<entity id='Co' value='4665177' />";
strXML2 = strXML2 + "<entity id='Ct' value='3510297' />";
strXML2 = strXML2 + "<entity id='De' value='843524' />";
strXML2 = strXML2 + "<entity id='DC' value='550521' />";
strXML2 = strXML2 + "<entity id='Fl' value='17789864' />";
strXML2 = strXML2 + "<entity id='Ga' value='9072576' />";
strXML2 = strXML2 + "<entity id='Hi' value='1275194' />";
strXML2 = strXML2 + "<entity id='Id' value='1429096' />";
strXML2 = strXML2 + "<entity id='Il' value='12763371' />";
strXML2 = strXML2 + "<entity id='In' value='6271973' />";
strXML2 = strXML2 + "<entity id='Io' value='2966334' />";
strXML2 = strXML2 + "<entity id='Ks' value='2744687' />";
strXML2 = strXML2 + "<entity id='Ky' value='4173405' />";
strXML2 = strXML2 + "<entity id='La' value='4523628' />";
strXML2 = strXML2 + "<entity id='Me' value='1321505' />";
strXML2 = strXML2 + "<entity id='Md' value='5600388' />";
strXML2 = strXML2 + "<entity id='Ma' value='6398743' />";
strXML2 = strXML2 + "<entity id='Mi' value='10120860' />";
strXML2 = strXML2 + "<entity id='Mn' value='5132799' />";
strXML2 = strXML2 + "<entity id='Ms' value='2921088' />";
strXML2 = strXML2 + "<entity id='Mo' value='5800310' />";
strXML2 = strXML2 + "<entity id='Mt' value='935670' />";
strXML2 = strXML2 + "<entity id='Ne' value='1758787' />";
strXML2 = strXML2 + "<entity id='Nv' value='2414807' />";
strXML2 = strXML2 + "<entity id='Nh' value='1309940' />";
strXML2 = strXML2 + "<entity id='Nj' value='8717925' />";
strXML2 = strXML2 + "<entity id='Nm' value='1928384' />";
strXML2 = strXML2 + "<entity id='Ny' value='19254630' />";
strXML2 = strXML2 + "<entity id='Nc' value='8683242' />";
strXML2 = strXML2 + "<entity id='Nd' value='636677' />";
strXML2 = strXML2 + "<entity id='Oh' value='11464042' />";
strXML2 = strXML2 + "<entity id='Ok' value='3547884' />";
strXML2 = strXML2 + "<entity id='Or' value='3641056' />";
strXML2 = strXML2 + "<entity id='Pa' value='12429616' />";
strXML2 = strXML2 + "<entity id='Ri' value='1076189' />";
strXML2 = strXML2 + "<entity id='Sc' value='4255083' />";
strXML2 = strXML2 + "<entity id='Sd' value='775933' />";
strXML2 = strXML2 + "<entity id='Tn' value='5962959' />";
strXML2 = strXML2 + "<entity id='Tx' value='22859968' />";
strXML2 = strXML2 + "<entity id='Ut' value='2469585' />";
strXML2 = strXML2 + "<entity id='Vt' value='623050' />";
strXML2 = strXML2 + "<entity id='Va' value='7567465' />";
strXML2 = strXML2 + "<entity id='Wa' value='6287759' />";
strXML2 = strXML2 + "<entity id='Wv' value='1816856' />";
strXML2 = strXML2 + "<entity id='Wi' value='5536201' />";
strXML2 = strXML2 + "<entity id='Wy' value='509294' />";
strXML2 = strXML2 + "</data>";
strXML2 = strXML2 + "</map>";
var xmlData1:XML = new XML(strXML1);
var xmlData2:XML = new XML(strXML2);
var mapContainerMC1:MovieClip = this.createEmptyMovieClip("MapHolder1",1);
var mapContainerMC2:MovieClip = this.createEmptyMovieClip("MapHolder2",2);
var myWorldMap:WorldMap = new WorldMap(mapContainerMC1, 1, 380, 320, 20, 15, false, "EN", "noScale", false, "");
var myUSAMap:USAMap = new USAMap(mapContainerMC2, 1, 380, 320, 440, 15, false, "EN", "noScale", false, "");
myWorldMap.setXMLData(xmlData1);
myUSAMap.setXMLData(xmlData2);
myWorldMap.render();
myUSAMap.render();
stop();
|