ࡱ> LRoot Entryp|YrRASH`FX*ContentsaYPage 1M$Symbol 1mP  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~Root Entryp|YrRASHK*ContentsYPage 1 L#Symbol 1mP  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKSymbol 6 aSymbol 7,Symbol 8 Symbol 9WSymbol 10 | Symbol 11Symbol 12CPicPage CPicLayer CPicFrame CPicSprite @.SA <component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> & &  fNA <component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> &! &! EU <component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> k6AF <component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> `"`"fME <component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> * * 0BAS<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> 00~AU<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> ?DI Entities3)) ;,Border<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> ?2` BorderO"T CanvasBorder<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath=''> </component> ? Canvas BorderO?> Label Connector LinesOO CPicPage CPicLayer CPicFramefS@1Lѯ   %      9 7        +       t XX/        @@      "   & !< + X   #         2   #   "  6 <!1  %  &D Gs3#'p+?i   "   70    "  ) U r #    - #  3            "      ! &     +5&=   4  + !   $  +#6 , 7 l ( "    ;! C#    7    'E=R[ Lw)9x " E 4<.[9  1 "  % 7" 5+Y*R/Z  " 2 *!B6-    ,I#&       !   &.J  )..]<    0 (   K   *   $G% !0!B9%      G   8<-9   5R    . <%J,W/   3 # ,        T       /! 3 ) "       6    "G  ="  #  >   *  ' #= ! 7 9!> " , &$  h,,}EA    (9>2y        3>( ,;  ..(     .  %  /   #-C[  05   - !    & 7     =   pH          '!@"B   0 & (   # +  2 Hxu@   +P -Y(,  6  - ( !8}W ($$!+H . ( N  B*8"'.!D  'L< &%?kM):      9      5 >       # %" "     , .   FF@z    b 89  "J +(7F   !,%[H 8b           =r     -(! 5.+  bL        ^ <#IH   2   6 ,   $$% 2d(      R    2c    7%( 4g '     :$$. -!!  ~      %%  )T3P 29> 3    & 2c 7%"    !   -1   "E           5f +$:C&$10    1  4!@)>,!:9o'O!?+      # /   %    Xx  # 1 ^"!B.[9 r 0  !     .)  .\xo&_\ 6,U      P " d ~,'$ Tu $   ŀ   "Mmoq   %,        #    ?  =    *6#^0<% 3      8p, L(  :.`$: =    # )   Q++j    1  xh- ?        9 e#M6   $      3 #  %    ( g !  %    & % ( h`x D6" &)  ; "1   4  ! (   "z   J~c !  +! )  3   "       !   B"Mh         '            9-    / $ #        | L!  !D / " 4!7          *  #   !A  e[    +,(        *    33 ]]~8       6         `          & "  "     d~ h  +   +)      "   ! f?@l.##  )     <0   "  &  &  h/   -5&"    )-e<  1   #!    %J 'L   2a 80,  P "    !     ``] E^"pe+   & 1          #A  2    )4@ 5SZ   %# &94l 4N6D3 4e 8  &  ,  D !@ )  'O 7%' C "     1-7.-2-92.   %   !#F H     8     B   ;  &@$/   ,+ U!zq0 KKh     |Z: 5      1MM74    " *S [!     1 z6i@@      I=(V /(       * -+   3 &  !(ܷ)"E+<'M* %I-!A9%I                     (   0    2    " $D   (8\/   $  A~   ) 7        27 # *>     3:l                     +  %  -)                 1! >  " &    0$'ro2      (*)  !#/    4         #             Wz       2   " #  U ^   LrBb        5Ox     -  8  "    +     K =hv[2U׀ 1 6z{= %% &J-       )/  3`p 7!  #   'N$F  " 9  = &!1;            5 %          (#     8 $ " $    ( ( 'M F\        9  ) Q, "  < 2 " 9,q?& %            -\  3 #E6 3-    tM         %*%G      mP4 -  r #     #     /         AI%    \^ p-   b6"-6   \ ug` H  IZx7+`\=- R u0YD + qhNX >     !    '    '$" ;        (9 @t  &    "E - #'" 6 <2               %7        *               ($         !  )&  ;#   i    T    []d'^WkR   45  ! '$C# #,(           ;I &  'O"5)$  &&      %K'  3`   C>4gԀ 40 1Yb2 7 ,3;K(P+   "ozt h           "\4|r  #     0!   p   %|?^ Layer 1OOCPicPage CPicLayer CPicFrame CPicShape0<vWd6 <2          &    "E - #'"          (#     8 $ " $    ( ( 'M F\        9  ) Q, "  < 2 " 9,q?& %            -\  3 #E6 3-      N"     1-7.-2-92.   %   !#F H     8     B   ;  &@$/   ,+ U!zq0 KKh     |Z: 5      1MM74    " *S  > C $+   "D'  *   1/   !      *     b Xhhq1 %% &J-       )/  3 7!  #   'N$F  " 9  = &!1;            5 % ?L Layer 1OOCPicPage CPicLayer CPicFrame t H!A9%I                   4gԀ 40 1Yb2 7 ,3;K(P+          %7        *               ($         !  )&  ;#   i    T    []d'^WkR`       9      dv    4     "57-q  ((          2(n  (8\/   $  A~   ) 7        27 # *>     3:l                     +  %  -)                 1! >  " &    0$'ro2      (*)  !#/    4         #             WzK ?     2 7  a  9- #  5|:VucluUnK   A.eL    G9 a aKb      oo]]Z 5Ox     -  8  "    +     K =hU׀ 1 6zX >[!     1 z6i@@      I=(V /(       * -+   3 &  !(ܷ)4@ 5SZ   %# &94l 4N6D3 4e 8  &  ,  D !@ )  'O     1#C4_3   7         AI%    \u r ~  #  -    #              eE6         : %        (  5>  (   0    2    " $D K  >>#          T      P*%G           8         M%pLɀ        !      }:*  &"   !1      (    sT'    '$" ;        (9 +     !hz9     ! h~o?I_ Layer 1OO CPicPage CPicLayer CPicFrame?: Layer 1OOCPicPage CPicLayer CPicFrame CPicShapeI|F!CPicPage CPicLayer CPicFrameWa/X  ;   6 1)   7  !30T)5 "# "  (. A   $* ~Q  ( 4! ?/]$6 / "  ? <%+            "1  \         `  "J 3+(7F   !,%[H 8b           =r     -(! 5.+  bL                @@      "   & !< + X   #         2   #   "  6 <!1  %  &D Gs3#'p+?i   "   70    "  ) U 9 #    - #  3            "      ! &     +5&=   4  + !   $  +#6 , 7 l ( "    ;! C#    7    'E=R[m  Y\      0!   |r  #"7        +       1Lѯ   %      9 ?2_ Layer 1OOCPicPage CPicLayer CPicFrame CPicShapesUW*   J~c !  +! )  3   "       !   B"W`B' 2 Hh         '           W. L!  !D / " 4!7          *  #   !A  e[    +,(        *    33 ]]~8       6         `          & "  "      9-    / $ #        |~     %    & % ( h`x D!Wv &)  ; "1   4  ! (   ""H "    !     ``?> Layer 1OOCPicPage CPicLayer CPicFrame. H(   K   *   $G% !0!B9%   ++  G   8<-9   5R    . <%J,W/   3 # ,        T       /! 3 ) "       6    "G  ="  #  >   *  ' #= ! 7 9!> " , &$  h,,}EA    (9>2y        3>( ,;  ..(     .  %  /   #-C[  05   - !    & 7     =   H          '!@"B   0 & (   # +  2 ?@@   +P -Y(,  6  - ( !8}W ($$!+H . ( N  B*8"'.!D  'L< &%?pe")8- :      9      5 >       # %" "     , .   FF@z    b 89IH   2   6 ,   $$% 2d(      R    # )  ~ 7%( 4g '     :$$. -!!  ~      %%  )T3P w)9x "  E 4<.[9  1 "  % 7" 5+Y*R/Z  " 2 *!B6-    ,I#&       !   &.J  )..]<    0  ?        9 -ge#M6   $      3 #  %    (     1  ,  +   +)      "   ! L&  &  .##  )     <0   "  ~   -5&"   )-e<  1   #!    %J 'L   2a 80, @ j {  TG v<$'?6k Layer 1OOCPicPage CPicLayer CPicFrame CPicShape`W      5f +$:C&$10    1  4!@)>,!:9o'O!?+      # /   %    Xx  # 1 ^"!B.[9 r 0  !     .)  .\xo&_\ 6,U      P " d ~,'$ Tu $   ŀ   "Mmoq   %,        #    ?  =    *6#^0<% 3      8p, L(  :.`$:   & 2c 7%"    !   -1   "E      2      & 1          #A ?@K Layer 1OO?P# Layer 1OOCPicPage CPicLayer CPicFrame CPicShapeoH?H00o0H??  Layer 1OOCPicPage CPicLayer CPicFrame~H </component> CPicText 8 " Verdanafff(Population By Continents?D/** * This layer contains some graphical elements as the background * of the chart. The idea is to show that you can easily merge * FusionMaps with the graphic elements of your own Flash movies * to create exciting animated charts. */ Graphic ElementsOO? f/** * This keyframe contains the Actions required to load a FusionMaps * map in your Flash movie. * * We've set the FPS of this movie to 120 for smooth animations. * Depending on your requirements, you can set any FPS. FusionMaps * renders time based animations, so the length of animation would stay * same. Only the smoothness would vary. */ //You first need to include the following two files in your movie. //These two files contain pre-loading functions and application //messages for the map. //Note: If you're loading multiple maps in your Flash movie, you //do NOT need to include these files for each each. You can put these //lines in the main timeline, so that it gets loaded only once. #include "com/fusionmaps/includes/LoadingFunctions.as" #include "com/fusionmaps/includes/AppMessages.as" //To create the map, you now need to import the Class of the //map which you want to create. All maps are present in the package //com.fusionmaps.maps (Download Package > MapSource folder) //If you're using multiple maps, you can import all the requisite //map classes in the main timeline of your movie. That ways, you //wouldn't have to import the maps classes everytime you wish to use. import com.fusionmaps.maps.WorldMap; // --------------- Event Handlers ---------------- // //Create a listener object and register the map with it var objL:Object = new Object(); //Create the handler for link objL.linkClicked = function(target:Object){ trace("Entity " + target.link + " was clicked"); } // ------------- XML Data for the map -------------- // //Generate the XML data. We hide the border of map, set background //alpha as 0 (for transparency), set legend at bottom, hide its shadow var strXML:String = "<map bgAlpha='0' showCanvasBorder='0' includeNameInLabels='0' includeValueInLabels='1' numberSuffix=' Mn.' labelSepChar=': ' baseFontSize='9' legendPosition='BOTTOM' legendShadow='0'>"; //Define color range strXML = strXML + "<colorRange>"; strXML = strXML + "<color minValue='0' maxValue='500' displayValue='Sparsely Populated' color='A7E9BC' />"; strXML = strXML + "<color minValue='500' maxValue='1000' displayValue='Well Populated' color='FFFFCC' />"; strXML = strXML + "<color minValue='1000' maxValue='5000' displayValue='Densely Populated' color='FF9377' />"; strXML = strXML + "</colorRange>"; //Add simple data for demo. strXML = strXML + "<data>"; strXML = strXML + "<entity id='NA' value='515' link='S-NA'/>"; strXML = strXML + "<entity id='SA' value='373' link='S-SA'/>"; strXML = strXML + "<entity id='AS' value='3875' link='S-AS'/>"; strXML = strXML + "<entity id='EU' value='727' link='S-EU'/>"; strXML = strXML + "<entity id='AF' value='885' link='S-AF'/>"; strXML = strXML + "<entity id='AU' value='32' link='S-AU'/>"; strXML = strXML + "</data>"; strXML = strXML + "</map>"; //FusionMaps map classes accept XML data as XML Object //and not XML String. //So, if you've an XML string, first create an XML object from it //and then pass to the map. We do the same. var xmlData:XML = new XML(strXML); // --------------------------------------------------- // // -------------- Actual Code to create the map ------------// //To create a map, you first need to create an empty movie clip to act as map holder. var mapContainerMC:MovieClip = this.createEmptyMovieClip("MapHolder",1); //Now, instantiate the map using Constructor function of the map. var myFirstMap:WorldMap = new WorldMap(mapContainerMC, 1, 450, 315, 20, 20, false, "EN", "noScale", false, ""); //Convey the XML data to map. myFirstMap.setXMLData(xmlData); //Draw the map myFirstMap.render(); //Stop stop(); Actions3tMap.render(); //Stop stop(); Actions3? CDocumentPagePage 1Scene 1wNDGSymbol 1MovBgM7E Symbol 1$O7ESymbol 2 CanvasBorderD2D(..\Development\PowerMaps\FCMap_World.flaWorld Map/CanvasBorder2D2D2DSymbol 3 ConnectorDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/ConnectorDDDSymbol 4AFDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/AFDDDSymbol 5ASD'D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/ASD'DDSymbol 6AUD8D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/AUD8DDSymbol 7EUDއD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/EU:DއD:DSymbol 8MEDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/MEDDDSymbol 9NA D·D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/NAD·DD Symbol 10SA DD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/SAڈDDڈD Symbol 11 MapBorder DD(..\Development\PowerMaps\FCMap_World.flaWorld Map/MapBorderDDD Symbol 12WorldMap D͆DWorldMap(..\Development\PowerMaps\FCMap_World.flaWorld Map/WorldMapD͆DD 'XhhhhhxlegacyLineSpacing0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0Vector::AS3 Package Paths"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileName Untitled-1 PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1Vector::UseNetwork0Vector::Debugging Permitted0PublishProfileProperties::nameDefaultPublishHtmlProperties::Loop1PublishFormatProperties::jpeg0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0Vector::External Player%PublishHtmlProperties::showTagWarnMsg1PublishHtmlProperties::Units04PublishHtmlProperties::UsingDefaultAlternateFilename1PublishGifProperties::Smooth1%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200Vector::Compress Movie1Vector::Package Paths&PublishFormatProperties::flashFileNameUntitled-1.swf'PublishFormatProperties::gifDefaultName1%PublishFormatProperties::projectorMac0"PublishGifProperties::DitherOption!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1Vector::FireFox0PublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameUntitled-1.pngPublishFormatProperties::html1"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionVector::Override Sounds0!PublishHtmlProperties::DeviceFont0-PublishFormatProperties::generatorDefaultName1PublishQTProperties::Flatten1PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0PublishJpegProperties::DPI4718592Vector::Quality80Vector::Protect0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment12PublishHtmlProperties::VersionDetectionIfAvailable0Vector::Template0*PublishFormatProperties::generatorFileNameUntitled-1.swt(PublishFormatProperties::rnwkDefaultName1(PublishFormatProperties::jpegDefaultName1PublishFormatProperties::gif0PublishGifProperties::Loop1PublishGifProperties::Width550$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1#PublishFormatProperties::qtFileNameUntitled-1.mov"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80PublishFormatProperties::flash1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1$PublishJpegProperties::MatchMovieDim1Vector::Package Export Frame1!PublishProfileProperties::version1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameUntitled-1.exe'PublishFormatProperties::pngDefaultName10PublishFormatProperties::projectorMacDefaultName1#PublishQTProperties::PlayEveryFrame0"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0Vector::Debugging PasswordVector::Omit Trace Actions0PublishHtmlProperties::Height400PublishHtmlProperties::Width550%PublishFormatProperties::jpegFileNameUntitled-1.jpg)PublishFormatProperties::flashDefaultName1PublishPNGProperties::Interlace0PublishGifProperties::Height400PublishJpegProperties::Size0Vector::DeviceSound0Vector::TopDown0'PublishHtmlProperties::TemplateFileName Default.html!PublishHtmlProperties::WindowMode02PublishHtmlProperties::UsingDefaultContentFilename1-PublishFormatProperties::projectorMacFileNameUntitled-1.hqx(PublishFormatProperties::htmlDefaultName1PublishFormatProperties::rnwk0PublishFormatProperties::png0PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountPublishRNWKProperties::speed56K1Vector::Report0+PublishHtmlProperties::OwnAlternateFilename(PublishHtmlProperties::AlternateFilename&PublishHtmlProperties::ContentFilename"PublishFormatProperties::generator0$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Version8Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400Vector::EventUse8kSampleRate0Vector::StreamUse8kSampleRate0Vector::ActionScriptVersion2Vector::Event Compress7PublishHtmlProperties::Scale00PublishFormatProperties::projectorWinDefaultName1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishJpegProperties::Width550Vector::Stream Format0"PublishHtmlProperties::VersionInfo@8,0,0,0;7,0,0,0;6,0,0,0;5,0,0,0;4,0,0,0;3,0,0,0;2,0,0,0;1,0,0,0;$PublishFormatProperties::gifFileNameUntitled-1.gif&PublishFormatProperties::qtDefaultName1"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255,PublishHtmlProperties::UsingOwnAlternateFile0%PublishFormatProperties::rnwkFileNameUntitled-1.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]4eC5 World MapDEntitiesDD"PublishQTProperties::QTSndSettingsCQTAudioSettingsh<?xml version="1.0" encoding="UTF-16" standalone="no" ?> <mobileSettings> <contentType id="standalonePlayer" name="Standalone Player"/> <testDevices/> </mobileSettings> QTAudioSetti   NOQRSTUVWXYZ[\]^_`bcdefghijklmnopqrstuvwxyz{|}~CPicPage CPicLayer CPicFrame CPicSprites @@@I?d8L<component metaDataFetched='true' schemaUrl='' schemaOperation='' sceneRootLabel='Scene 1' oldCopiedComponentPath='1'> </component> CPicText 8 " Verdanafff(Population By Continents?D/** * This layer contains some graphical elements as the background * of the chart. The idea is to show that you can easily merge * FusionMaps with the graphic elements of your own Flash movies * to create exciting animated charts. */ Graphic ElementsOO? Symbol 2 Symbol 3xSymbol 4Symbol 5]3/** * This keyframe contains the Actions required to load a FusionMaps * map in your Flash movie. * * We've set the FPS of this movie to 120 for smooth animations. * Depending on your requirements, you can set any FPS. FusionMaps * renders time based animations, so the length of animation would stay * same. Only the smoothness would vary. */ //You first need to include the following two files in your movie. //These two files contain pre-loading functions and application //messages for the map. //Note: If you're loading multiple maps in your Flash movie, you //do NOT need to include these files for each each. You can put these //lines in the main timeline, so that it gets loaded only once. #include "com/fusionmaps/includes/LoadingFunctions.as" #include "com/fusionmaps/includes/AppMessages.as" //To create the map, you now need to import the Class of the //map which you want to create. All maps are present in the package //com.fusionmaps.maps (Download Package > MapSource folder) //If you're using multiple maps, you can import all the requisite //map classes in the main timeline of your movie. That ways, you //wouldn't have to import the maps classes everytime you wish to use. import com.fusionmaps.maps.WorldMap; // --------------- Event Handlers ---------------- // //Create a listener object and register the map with it var objL:Object = new Object(); //Create the handler for link objL.linkClicked = function(target:Object){ trace("Entity " + target.link + " was clicked"); } // ------------- XML Data for the map -------------- // //Generate the XML data. We hide the border of map, set background //alpha as 0 (for transparency), set legend at bottom, hide its shadow var strXML:String = "<map bgAlpha='0' showCanvasBorder='0' includeNameInLabels='0' includeValueInLabels='1' numberSuffix=' Mn.' labelSepChar=': ' baseFontSize='9' legendPosition='BOTTOM' legendShadow='0'>"; //Define color range strXML = strXML + "<colorRange>"; strXML = strXML + "<color minValue='0' maxValue='500' displayValue='Sparsely Populated' color='A7E9BC' />"; strXML = strXML + "<color minValue='500' maxValue='1000' displayValue='Well Populated' color='FFFFCC' />"; strXML = strXML + "<color minValue='1000' maxValue='5000' displayValue='Densely Populated' color='FF9377' />"; strXML = strXML + "</colorRange>"; //Add simple data for demo. strXML = strXML + "<data>"; strXML = strXML + "<entity id='NA' value='515' link='S-NA'/>"; strXML = strXML + "<entity id='SA' value='373' link='S-SA'/>"; strXML = strXML + "<entity id='AS' value='3875' link='S-AS'/>"; strXML = strXML + "<entity id='EU' value='727' link='S-EU'/>"; strXML = strXML + "<entity id='AF' value='885' link='S-AF'/>"; strXML = strXML + "<entity id='AU' value='32' link='S-AU'/>"; strXML = strXML + "</data>"; strXML = strXML + "</map>"; //FusionMaps map classes accept XML data as XML Object //and not XML String. //So, if you've an XML string, first create an XML object from it //and then pass to the map. We do the same. var xmlData:XML = new XML(strXML); // --------------------------------------------------- // // -------------- Actual Code to create the map ------------// //To create a map, you first need to create an empty movie clip to act as map holder. var mapContainerMC:MovieClip = this.createEmptyMovieClip("MapHolder",1); //Now, instantiate the map using Constructor function of the map. var myFirstMap:WorldMap = new WorldMap(mapContainerMC, 1, 450, 315, 20, 20, false, "EN", "noScale", false, ""); //Convey the XML data to map. myFirstMap.setXMLData(xmlData); //Register the map with listener object myFirstMap.addEventListener("linkClicked", objL); //Draw the map myFirstMap.render(); //Stop stop(); Actions3Draw the map myFirstMap.render(); //Stop stop(); Actions3Symbol 1MovBgM7E Symbol? CDocumentPagePage 1Scene 1wNDȅGSymbol 1MovBgM7E Symbol 1$O7ESymbol 2 CanvasBorderD2D(..\Development\PowerMaps\FCMap_World.flaWorld Map/CanvasBorder2D2D2DSymbol 3 ConnectorDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/ConnectorDDDSymbol 4AFDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/AFDDDSymbol 5ASD'D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/ASD'DDSymbol 6AUD8D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/AUD8DDSymbol 7EUDއD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/EU:DއD:DSymbol 8MEDD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/MEDDDSymbol 9NA D·D(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/NAD·DD Symbol 10SA DD(..\Development\PowerMaps\FCMap_World.flaWorld Map/Entities/SAڈDDڈD Symbol 11 MapBorder DD(..\Development\PowerMaps\FCMap_World.flaWorld Map/MapBorderDDD Symbol 12WorldMap D͆DWorldMap(..\Development\PowerMaps\FCMap_World.flaWorld Map/WorldMapD͆DD 'XhhhhhxlegacyLineSpacing0!PublishGifProperties::PaletteName PublishRNWKProperties::speed256K0Vector::AS3 Package Paths"PublishHtmlProperties::StartPaused0%PublishFormatProperties::htmlFileName Untitled-1 PublishQTProperties::LayerOption PublishQTProperties::AlphaOption"PublishQTProperties::MatchMovieDim1Vector::UseNetwork0Vector::Debugging Permitted0PublishProfileProperties::nameDefaultPublishHtmlProperties::Loop1PublishFormatProperties::jpeg0PublishQTProperties::Width550$PublishPNGProperties::OptimizeColors1&PublishRNWKProperties::speedSingleISDN0&PublishRNWKProperties::singleRateAudio0Vector::External Player%PublishHtmlProperties::showTagWarnMsg1PublishHtmlProperties::Units04PublishHtmlProperties::UsingDefaultAlternateFilename1PublishGifProperties::Smooth1%PublishRNWKProperties::mediaCopyright(c) 2000#PublishRNWKProperties::flashBitRate1200Vector::Compress Movie1Vector::Package Paths&PublishFormatProperties::flashFileNameUntitled-1.swf'PublishFormatProperties::gifDefaultName1%PublishFormatProperties::projectorMac0"PublishGifProperties::DitherOption!PublishRNWKProperties::exportSMIL1 PublishRNWKProperties::speed384K0"PublishRNWKProperties::exportAudio1Vector::FireFox0PublishHtmlProperties::Quality4(PublishHtmlProperties::VerticalAlignment1$PublishFormatProperties::pngFileNameUntitled-1.pngPublishFormatProperties::html1"PublishPNGProperties::FilterOption'PublishRNWKProperties::mediaDescriptionVector::Override Sounds0!PublishHtmlProperties::DeviceFont0-PublishFormatProperties::generatorDefaultName1PublishQTProperties::Flatten1PublishPNGProperties::BitDepth24-bit with AlphaPublishPNGProperties::Smooth1"PublishGifProperties::DitherSolids0PublishGifProperties::Interlace0PublishJpegProperties::DPI4718592Vector::Quality80Vector::Protect0"PublishHtmlProperties::DisplayMenu1*PublishHtmlProperties::HorizontalAlignment12PublishHtmlProperties::VersionDetectionIfAvailable0Vector::Template0*PublishFormatProperties::generatorFileNameUntitled-1.swt(PublishFormatProperties::rnwkDefaultName1(PublishFormatProperties::jpegDefaultName1PublishFormatProperties::gif0PublishGifProperties::Loop1PublishGifProperties::Width550$PublishRNWKProperties::mediaKeywords!PublishRNWKProperties::mediaTitlePublishRNWKProperties::speed28K1#PublishFormatProperties::qtFileNameUntitled-1.mov"PublishPNGProperties::DitherOption#PublishGifProperties::PaletteOption#PublishGifProperties::MatchMovieDim1$PublishRNWKProperties::speedDualISDN0$PublishRNWKProperties::realVideoRate100000PublishJpegProperties::Quality80PublishFormatProperties::flash1#PublishPNGProperties::PaletteOption#PublishPNGProperties::MatchMovieDim1$PublishJpegProperties::MatchMovieDim1Vector::Package Export Frame1!PublishProfileProperties::version1PublishHtmlProperties::Align0-PublishFormatProperties::projectorWinFileNameUntitled-1.exe'PublishFormatProperties::pngDefaultName10PublishFormatProperties::projectorMacDefaultName1#PublishQTProperties::PlayEveryFrame0"PublishPNGProperties::DitherSolids0"PublishJpegProperties::Progressive0Vector::Debugging PasswordVector::Omit Trace Actions0PublishHtmlProperties::Height400PublishHtmlProperties::Width550%PublishFormatProperties::jpegFileNameUntitled-1.jpg)PublishFormatProperties::flashDefaultName1PublishPNGProperties::Interlace0PublishGifProperties::Height400PublishJpegProperties::Size0Vector::DeviceSound0Vector::TopDown0'PublishHtmlProperties::TemplateFileName Default.html!PublishHtmlProperties::WindowMode02PublishHtmlProperties::UsingDefaultContentFilename1-PublishFormatProperties::projectorMacFileNameUntitled-1.hqx(PublishFormatProperties::htmlDefaultName1PublishFormatProperties::rnwk0PublishFormatProperties::png0PublishQTProperties::Height400%PublishPNGProperties::RemoveGradients0PublishGifProperties::MaxColors255'PublishGifProperties::TransparentOptionPublishGifProperties::LoopCountPublishRNWKProperties::speed56K1Vector::Report0+PublishHtmlProperties::OwnAlternateFilename(PublishHtmlProperties::AlternateFilename&PublishHtmlProperties::ContentFilename"PublishFormatProperties::generator0$PublishGifProperties::OptimizeColors1"PublishRNWKProperties::audioFormat0Vector::Version8Vector::Event Format0Vector::Stream Compress7PublishFormatProperties::qt0PublishPNGProperties::Height400PublishPNGProperties::Width550%PublishGifProperties::RemoveGradients0 PublishRNWKProperties::speed512K0PublishJpegProperties::Height400Vector::EventUse8kSampleRate0Vector::StreamUse8kSampleRate0Vector::ActionScriptVersion2Vector::Event Compress7PublishHtmlProperties::Scale00PublishFormatProperties::projectorWinDefaultName1PublishQTProperties::Looping0*PublishQTProperties::UseQTSoundCompression0!PublishPNGProperties::PaletteName!PublishPNGProperties::Transparent0&PublishGifProperties::TransparentAlpha128PublishGifProperties::Animated0"PublishRNWKProperties::mediaAuthor(PublishRNWKProperties::speedCorporateLAN0&PublishRNWKProperties::showBitrateDlog1"PublishRNWKProperties::exportFlash1PublishJpegProperties::Width550Vector::Stream Format0"PublishHtmlProperties::VersionInfo@8,0,0,0;7,0,0,0;6,0,0,0;5,0,0,0;4,0,0,0;3,0,0,0;2,0,0,0;1,0,0,0;$PublishFormatProperties::gifFileNameUntitled-1.gif&PublishFormatProperties::qtDefaultName1"PublishQTProperties::PausedAtStart0%PublishQTProperties::ControllerOption0PublishPNGProperties::MaxColors255,PublishHtmlProperties::UsingOwnAlternateFile0%PublishFormatProperties::rnwkFileNameUntitled-1.smil%PublishFormatProperties::projectorWin0%PublishFormatProperties::defaultNames1 CColorDef3PfP0PHP`Px333(3f<03CH3F`3Hxf0f30ff(0f5Hf<`f@x3330333xf3d03]H3Z`3Xx3333303f3PPH33Px`33Px33Pf30f33PHff3(PHf3<x`f3Cxf3Ffff`f03f0ffx0fkHfd`f`x3f033fPH3ffxPH3fdx`3f]x3fZff0f3fPHfff`ffP0xffPxffPH3HfHxH̙n`hx3H33x`3fx`3xx`3̙kx3dfHf3x`ff0xfx0xf̙dxf]`3`f``x`px3`33x3fx3x3xx3nf`f3xffxfxfxxfkx3xfxxxxx3x333f333xfxf3fffffxxH3 HfH(H2`8x`3 `f`̙`(`0xx3xfxx x(xPx3H33x`f3x`3(x`35x3<3`33xf3 x̙3x3(x323x33f3 333(xfH3fx`ff0xf(0xf<xfCf`3fxffx̙fxf(xf5fx3ffff ff((xH3x`f0x̙PPP`3xfx̙P̙(P<x3f̙(xx`3xfxPxPd`3xfx̙PPx3f(xx3fxx3f̙xx3ff`zf*]4eC5 World MapDEntitiesDD"PublishQTProperties::QTSndSettingsCQTAudioSettingsh<?xml version="1.0" encoding="UTF-16" standalone="no" ?> <mobileSettings> <contentType id="standalonePlayer" name="Standalone Player"/> <testDevices/> </mobileSettings>