Bootstrap

AMMAP地图指南

Packagecom.ammap
Class public class AmMap
Inheritance AmMap Inheritance mx.core.UIComponent

AmMap is the main class of the application.

View the examples.



Public Properties
  Property Defined by
    allowMultipleDescriptionWindows : Boolean
Specifies if multiple description windows at a time are allowed.
AmMap
    areasSettings : AreasSettings
Common settings of areas
AmMap
    backgroundZoomsToTop : Boolean
Specifies if clicking on the "water" zooms to the "top"
AmMap
    balloon : AmBalloon
An instance of com.ammap.AmBalloon
AmMap
    dataSets : Array
Array of data sets
AmMap
    descriptionWindow : DescriptionWindow
Description window
AmMap
    developerMode : Boolean
When developer mode is set to true, right-click menu uptions for copying zoom information, margins, lat/log information appears.
AmMap
    dragMap : Boolean
Specifies if the map is draggable
AmMap
    easingFunction : Function
Map animation easing function.
AmMap
    fitMapToContainer : Boolean
Specifies if the map should be resized to fit to the stage.
AmMap
    linesSettings : LinesSettings
Common settings of lines
AmMap
    mapContainer : UIComponent
[read-only] The container of the map
AmMap
    mapMC : MovieClip
[read-only] Map movie clip
AmMap
    mapObjectsContainer : UIComponent
[read-only] Container of map objects.
AmMap
    mapProgressBar : Object
Progress bar of the map
AmMap
    mouseWheelZoomEnabled : Boolean
Specifies if zooming with mouse wheel is enabled
AmMap
    moviesSettings : MoviesSettings
Common settings of movies
AmMap
    numberFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmMap
    percentFormatter : NumberFormatter
An instance of mx.formatters.NumberFormatter.
AmMap
    selectedDataSet : DataSet
Sets a new DataSet or gets currently selected DataSet.
AmMap
    selectedObject : MapObject
Sets a new selectedObject or gets currently selected object.
AmMap
    showAsSelected : Array
array of MapObjects which should be colored as if they were selected.
AmMap
    showBalloonOnSelectedObject : Boolean
specifies if balloon should be displayed for currently seleced object
AmMap
    showMapProgressBar : Boolean
Specifies if progress bar should be displayed while loading a map
AmMap
    showObjectsAfterZoom : Boolean
Specifies if child objects should be added to stage only after the map zoomed to the final position
AmMap
    smallMap : SmallMap
Small map
AmMap
    stageObjectsContainer : UIComponent
[read-only] Container of stage objects.
AmMap
    useHandCursorOnClickableOjects : Boolean
Specifies if hand cursor should be displayed when mouse moves over a clickable object
AmMap
    useObjectColorForBalloon : Boolean
specifies if balloon should use a slighly darker color of currenlty hovered object.
AmMap
    zoomControl : ZoomControl
Zoom control of the map
AmMap
    zoomDuration : Number
Duration of zoom animation, in seconds
AmMap
    zoomY : Number
[read-only] Returns current zoomY coordinate.
AmMap
    zoomLat : Number
[read-only] Returns current zoomLat coordinate.
AmMap
    zoomLevel : Number
[read-only] Returns current zoom level.
AmMap
    zoomLong : Number
[read-only] Returns current zoomLong coordinate.
AmMap
    zoomOnDoubleClick : Boolean
Specifies if the map should be zoomed-in when user double clicks anywhere on the map (except objects which are clickable)
AmMap
    zoomX : Number
[read-only] Returns current zoomX coordinate.
AmMap
Public Methods
  Method Defined by
   
AmMap()
Constructor.
AmMap
   
allMapObjects():Array
returns array of all MapObjects available in the DataSet
AmMap
   
checkIfSelected(mapObject: MapObject):Boolean
Checks if the object is currently selected.
AmMap
   
cleanDataSet(dataSet: DataSet):void
removes all MapObjects, zoom properties, and calibration longitudes/latitudes
AmMap
   
clearMap():void
unload current map and removes all objects
AmMap
   
clickMapObject(mapObject: MapObject):void
Simulates click on a map object - sets a new selectedObject and dispatches clickMapObject event
AmMap
   
Closes all open description windows
AmMap
   
coordinateToLatitude(coordinate:Number):Number
Converts provided map y coordinate to Latitude
AmMap
   
coordinateToLongitude(coordinate:Number):Number
Converts provided map x coordinate to Longitude
AmMap
   
Returns Latitude of the area center
AmMap
   
Returns Longitude of the area center
AmMap
   
getYFromMargin(obj:Object, objHeight:Number):Number
Returns object's y coodinate in pixels (if marginTop or marginBottom is set)
AmMap
   
getXFromMargin(obj:Object, objWidth:Number):Number
Returns object's x coodinate in pixels (if marginLeft or marginRight is set)
AmMap
   
hideGroup(groupId:String):void
Hides objects with provided groupId
AmMap
   
invalidates data - the map will rebuild it's objects
AmMap
   
Invalidates MapObjects.
AmMap
   
kilometersToPixels(kilometers:Number):Number
converts kilometers to pixels.
AmMap
   
latitudeToCoordinate(latitude:Number):Number
Converts provided latitude to y coordinate of the map
AmMap
   
longitudeToCoordinate(longitude:Number):Number
Converts provided longitude to x coordinate of the map
AmMap
   
milesToPixels(miles:Number):Number
converts miles to pixels.
AmMap
   
moveDown():void
Moves map down by panStepSize (property of ZoomControl)
AmMap
   
moveLeft():void
Moves map left by panStepSize (property of ZoomControl)
AmMap
   
moveRight():void
Moves map right by panStepSize (property of ZoomControl)
AmMap
   
moveUp():void
Moves map up by panStepSize (property of ZoomControl)
AmMap
   
rollOutMapObject(mapObject: MapObject):void
Simulates a roll-out off a map object.
AmMap
   
rollOverMapObject(mapObject: MapObject, showBalloon:Boolean = false):void
Simulates a roll-over of a map object.
AmMap
   
showGroup(value:String):void
Shows objects with provided groupId
AmMap
   
zoomIn():void
Zooms in.
AmMap
   
zoomOut():void
Zooms out.
AmMap
   
zoomTo(zLevel:Number, zX:Number, zY:Number, instantly:Boolean = false):void
Zooms the map to provided zoom level and coordinates.
AmMap
   
zoomToGroup(group:String):void
zooms-in the map to so that all objects of a group would fit into AmMap container
AmMap
   
zoomToLatLongRectangle(leftLongitude:Number, topLatitude:Number, rightLongitude:Number, bottomLatitude:Number):void
zooms the map so that the provided rectangle is visible
AmMap
   
zoomToLongLat(zLevel:Number, long:Number, lat:Number, instantly:Boolean = false):void
zooms in the map and places provided latitude and longitude in the center of a component container.
AmMap
   
zoomToMapXY(zLevel:Number, x:Number, y:Number, instantly:Boolean = false):void
zooms the map to provided coordinates
AmMap
   
zoomToRectangle(rectangle:Rectangle):void
zooms the map so that the provided rectangle is visible
AmMap
   
zooms to currently selected object
AmMap
Events
  Event Summary Defined by
    Dispatched when user clicks on a map object AmMap
    Dispatched when data changes - new objects are added or removed or objects were invalidated AmMap
    Dispatched when a new DataSet is selected AmMap
    Dispatched when a home button of zoom control is clicked AmMap
    Dispatched when a map loading failded AmMap
    Dispatched when a map is loaded AmMap
    Dispatched when user rolls-out off a map object AmMap
    Dispatched when user rolls-over a map object AmMap
    Dispatched when a new map object is selected AmMap
    Dispatched when a zoom animation is finished AmMap
AMMAP标签的Styles
  Style Description Defined by
   
backgroundAlpha
Type: Number   CSS Inheritance: no
Background opacity
AmMap
   
backgroundColor
Type: uint   Format: Color   CSS Inheritance: no
Background color
AmMap
   
color
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.
AmMap
   
disabledColor
Type: uint   Format: Color   CSS Inheritance: yes
Color of text in the component if it is disabled. The default value is 0xAAB3B3.
AmMap
   
fontAntiAliasType
Type: String   CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields. The possible values are "normal" (flash.text.AntiAliasType.NORMAL) and "advanced"(flash.text.AntiAliasType.ADVANCED).

The default value is "advanced", which enables advanced anti-aliasing for the font. Set to "normal" to disable the advanced anti-aliasing.

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you cannot apply it to some characters and not others.

The default value is "advanced".
AmMap
   
fontFamily
Type: String   CSS Inheritance: yes
Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is "Verdana".
AmMap
   
fontGridFitType
Type: String   CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls. The possible values are "none" (flash.text.GridFitType.NONE), "pixel"(flash.text.GridFitType.PIXEL), and "subpixel" (flash.text.GridFitType.SUBPIXEL).

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is "pixel".
AmMap
   
fontSharpness
Type: Number   CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls. This property specifies the sharpness of the glyph edges. The possible values are Numbers from -400 through 400.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect for system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmMap
   
fontSize
Type: Number   Format: Length   CSS Inheritance: yes
Height of the text, in pixels. The default value is 10 for all controls except the ColorPicker control. For the ColorPicker control, the default value is 11.
AmMap
   
fontStyle
Type: String   CSS Inheritance: yes
Determines whether the text is italic font. Recognized values are "normal" and "italic". The default value is "normal".
AmMap
   
fontThickness
Type: Number   CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls. This property specifies the thickness of the glyph edges. The possible values are Numbers from -200 to 200.

This property only applies when you are using an embedded font and the fontAntiAliasType property is set to "advanced".

This style has no effect on system fonts.

This style applies to all the text in a TextField subcontrol; you can't apply it to some characters and not others.

The default value is 0.
AmMap
   
fontWeight
Type: String   CSS Inheritance: yes
Determines whether the text is boldface. Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
AmMap
   
kerning
Type: Boolean   CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false). Kerning adjusts the gap between certain character pairs to improve readability, and should be used only when necessary, such as with headings in large fonts. Kerning is supported for embedded fonts only. Certain fonts, such as Verdana, and monospaced fonts, such as Courier New, do not support kerning. The default value is false.
AmMap
   
letterSpacing
Type: Number   CSS Inheritance: yes
The number of additional pixels to appear between each character. A positive value increases the character spacing beyond the normal spacing, while a negative value decreases it. The default value is 0.
AmMap
   
textAlign
Type: String   CSS Inheritance: yes
Alignment of text within a container. Possible values are "left""right", or "center".

The default value for most components is "left". For the FormItem component, the default value is "right". For the Button, LinkButton, and AccordionHeader components, the default value is "center", and this property is only recognized when the labelPlacement property is set to "left" or "right". If labelPlacement is set to "top" or "bottom", the text and any icon are centered.

AmMap
   
textDecoration
Type: String   CSS Inheritance: yes
Determines whether the text is underlined. Possible values are "none" and "underline". The default value is "none".
AmMap
   
textIndent
Type: Number   Format: Length   CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels. The default value is 0.
AmMap
Property detail
allowMultipleDescriptionWindows property
allowMultipleDescriptionWindows:Boolean  [read-write]

Specifies if multiple description windows at a time are allowed. When set to false, previously opened window is closed when opening a new one.

The default value is false.

Implementation  
    public function get allowMultipleDescriptionWindows():Boolean  
    public function set allowMultipleDescriptionWindows(value:Boolean):void  
areasSettings property 
areasSettings:AreasSettings  [read-write]

Common settings of areas

Implementation  
    public function get areasSettings():AreasSettings  
    public function set areasSettings(value:AreasSettings):void  
backgroundZoomsToTop property 
backgroundZoomsToTop:Boolean  [read-write]

Specifies if clicking on the "water" zooms to the "top"

Implementation  
    public function get backgroundZoomsToTop():Boolean  
    public function set backgroundZoomsToTop(value:Boolean):void  
balloon property 
balloon:AmBalloon  [read-write]

An instance of com.ammap.AmBalloon

Implementation  
    public function get balloon():AmBalloon  
    public function set balloon(value:AmBalloon):void  
dataSets property 
dataSets:Array  [read-write]

Array of data sets

Implementation  
    public function get dataSets():Array  
    public function set dataSets(value:Array):void  
descriptionWindow property 
descriptionWindow:DescriptionWindow  [read-write]

Description window

Implementation  
    public function get descriptionWindow():DescriptionWindow  
    public function set descriptionWindow(value:DescriptionWindow):void  
developerMode property 
developerMode:Boolean  [read-write]

When developer mode is set to true, right-click menu uptions for copying zoom information, margins, lat/log information appears.

The default value is false.

Implementation  
    public function get developerMode():Boolean  
    public function set developerMode(value:Boolean):void  
dragMap property 
dragMap:Boolean  [read-write]

Specifies if the map is draggable

The default value is true.

Implementation  
    public function get dragMap():Boolean  
    public function set dragMap(value:Boolean):void  
easingFunction property 
easingFunction:Function  [read-write]

Map animation easing function. Try Exponential.easeOut, Regular.easeOut

The default value is Exponential.easeOut.

Implementation  
    public function get easingFunction():Function  
    public function set easingFunction(value:Function):void  
fitMapToContainer property 
fitMapToContainer:Boolean  [read-write]

Specifies if the map should be resized to fit to the stage.

The default value is true.

Implementation  
    public function get fitMapToContainer():Boolean  
    public function set fitMapToContainer(value:Boolean):void  
linesSettings property 
linesSettings:LinesSettings  [read-write]

Common settings of lines

Implementation  
    public function get linesSettings():LinesSettings  
    public function set linesSettings(value:LinesSettings):void  
mapContainer property 
mapContainer:UIComponent  [read-only]

The container of the map

Implementation  
    public function get mapContainer():UIComponent  
mapMC property 
mapMC:MovieClip  [read-only]

Map movie clip

Implementation  
    public function get mapMC():MovieClip  
mapObjectsContainer property 
mapObjectsContainer:UIComponent  [read-only]

Container of map objects. Map objects are the ones with lat and long specified, they move with the map when it is moved.

Implementation  
    public function get mapObjectsContainer():UIComponent  
mapProgressBar property 
mapProgressBar:Object  [read-write]

Progress bar of the map

Implementation  
    public function get mapProgressBar():Object  
    public function set mapProgressBar(value:Object):void  
mouseWheelZoomEnabled property 
mouseWheelZoomEnabled:Boolean  [read-write]

Specifies if zooming with mouse wheel is enabled

The default value is true.

Implementation  
    public function get mouseWheelZoomEnabled():Boolean  
    public function set mouseWheelZoomEnabled(value:Boolean):void  
moviesSettings property 
moviesSettings:MoviesSettings  [read-write]

Common settings of movies

Implementation  
    public function get moviesSettings():MoviesSettings  
    public function set moviesSettings(value:MoviesSettings):void  
numberFormatter property 
numberFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control uses this class to format the numbers.

The default value is mx.formatters.NumberFormatter.

Implementation  
    public function get numberFormatter():NumberFormatter  
    public function set numberFormatter(value:NumberFormatter):void  
percentFormatter property 
percentFormatter:NumberFormatter  [read-write]

An instance of mx.formatters.NumberFormatter. The control uses this class to format the percent numbers.

The default value is mx.formatters.NumberFormatter with precision = 1.

Implementation  
    public function get percentFormatter():NumberFormatter  
    public function set percentFormatter(value:NumberFormatter):void  
selectedDataSet property 
selectedDataSet:DataSet  [read-write]

Sets a new DataSet or gets currently selected DataSet.

Implementation  
    public function get selectedDataSet():DataSet  
    public function set selectedDataSet(value:DataSet):void  
selectedObject property 
selectedObject:MapObject  [read-write]

Sets a new selectedObject or gets currently selected object.

Implementation  
    public function get selectedObject():MapObject  
    public function set selectedObject(value:MapObject):void  
showAsSelected property 
showAsSelected:Array  [read-write]

array of MapObjects which should be colored as if they were selected. showAsSelected will be set to false for all other objects.

Implementation  
    public function get showAsSelected():Array  
    public function set showAsSelected(value:Array):void  
showBalloonOnSelectedObject property 
showBalloonOnSelectedObject:Boolean  [read-write]

specifies if balloon should be displayed for currently seleced object

The default value is true.

Implementation  
    public function get showBalloonOnSelectedObject():Boolean  
    public function set showBalloonOnSelectedObject(value:Boolean):void  
showMapProgressBar property 
showMapProgressBar:Boolean  [read-write]

Specifies if progress bar should be displayed while loading a map

Implementation  
    public function get showMapProgressBar():Boolean  
    public function set showMapProgressBar(value:Boolean):void  
showObjectsAfterZoom property 
showObjectsAfterZoom:Boolean  [read-write]

Specifies if child objects should be added to stage only after the map zoomed to the final position

The default value is false.

Implementation  
    public function get showObjectsAfterZoom():Boolean  
    public function set showObjectsAfterZoom(value:Boolean):void  
smallMap property 
smallMap:SmallMap  [read-write]

Small map

Implementation  
    public function get smallMap():SmallMap  
    public function set smallMap(value:SmallMap):void  
stageObjectsContainer property 
stageObjectsContainer:UIComponent  [read-only]

Container of stage objects. Stage objects are the ones with margins specified, they do not move with the map when it is moved.

Implementation  
    public function get stageObjectsContainer():UIComponent  
useHandCursorOnClickableOjects property 
useHandCursorOnClickableOjects:Boolean  [read-write]

Specifies if hand cursor should be displayed when mouse moves over a clickable object

The default value is true.

Implementation  
    public function get useHandCursorOnClickableOjects():Boolean  
    public function set useHandCursorOnClickableOjects(value:Boolean):void  
useObjectColorForBalloon property 
useObjectColorForBalloon:Boolean  [read-write]

specifies if balloon should use a slighly darker color of currenlty hovered object.

The default value is true.

Implementation  
    public function get useObjectColorForBalloon():Boolean  
    public function set useObjectColorForBalloon(value:Boolean):void  
zoomControl property 
zoomControl:ZoomControl  [read-write]

Zoom control of the map

Implementation  
    public function get zoomControl():ZoomControl  
    public function set zoomControl(value:ZoomControl):void  
zoomDuration property 
zoomDuration:Number  [read-write]

Duration of zoom animation, in seconds

The default value is 1.

Implementation  
    public function get zoomDuration():Number  
    public function set zoomDuration(value:Number):void  
zoomY property 
zoomY:Number  [read-only]

Returns current zoomY coordinate. zoomY coordinate is calculated using this formula: zoomY = 100 _mapContainer.y / _mapMC.height so in general it shows map's y coodinate in percents of map height.

Implementation  
    public function get zoomY():Number  
zoomLat property 
zoomLat:Number  [read-only]

Returns current zoomLat coordinate. It's a Latitude of a map which is currently at component's containers center.

Implementation  
    public function get zoomLat():Number  
zoomLevel property 
zoomLevel:Number  [read-only]

Returns current zoom level. Zoom level is map scale 100

Implementation  
    public function get zoomLevel():Number  
zoomLong property 
zoomLong:Number  [read-only]

Returns current zoomLong coordinate. It's a Longitude of a map which is currently at component's containers center.

Implementation  
    public function get zoomLong():Number  
zoomOnDoubleClick property 
zoomOnDoubleClick:Boolean  [read-write]

Specifies if the map should be zoomed-in when user double clicks anywhere on the map (except objects which are clickable)

The default value is true.

Implementation  
    public function get zoomOnDoubleClick():Boolean  
    public function set zoomOnDoubleClick(value:Boolean):void  
zoomX property 
zoomX:Number  [read-only]

Returns current zoomX coordinate. zoomX coordinate is calculated using this formula: zoomX = 100 _mapContainer.x / _mapMC.width so in general it shows map's x coodinate in percents of map width.

Implementation  
    public function get zoomX():Number  
Constructor detail
AmMap () constructor
public function AmMap()

Constructor.

Method detail
allMapObjects () method
public function allMapObjects():Array

returns array of all MapObjects available in the DataSet

Returns
 Array
checkIfSelected () method 
public function checkIfSelected(mapObject:MapObject):Boolean

Checks if the object is currently selected. Not only _selectedObject can be selected - all objects linked with this object are also selected.

Parameters
 mapObject:MapObject

Returns
 Boolean
cleanDataSet () method 
public function cleanDataSet(dataSet:DataSet):void

removes all MapObjects, zoom properties, and calibration longitudes/latitudes

Parameters
 dataSet:DataSet
clearMap () method 
public function clearMap():void

unload current map and removes all objects

clickMapObject () method 
public function clickMapObject(mapObject:MapObject):void

Simulates click on a map object - sets a new selectedObject and dispatches clickMapObject event

Parameters
 mapObject:MapObject
closeAllDescriptions () method 
public function closeAllDescriptions():void

Closes all open description windows

coordinateToLatitude () method 
public function coordinateToLatitude(coordinate:Number):Number

Converts provided map y coordinate to Latitude

Parameters
 coordinate:Number

Returns
 Number
coordinateToLongitude () method 
public function coordinateToLongitude(coordinate:Number):Number

Converts provided map x coordinate to Longitude

Parameters
 coordinate:Number

Returns
 Number
getAreaCenterLatitude () method 
public function getAreaCenterLatitude(area:MapArea):Number

Returns Latitude of the area center

Parameters
 area:MapArea

Returns
 Number
getAreaCenterLongitude () method 
public function getAreaCenterLongitude(area:MapArea):Number

Returns Longitude of the area center

Parameters
 area:MapArea

Returns
 Number
getYFromMargin () method 
public function getYFromMargin(obj:Object, objHeight:Number):Number

Returns object's y coodinate in pixels (if marginTop or marginBottom is set)

Parameters
 obj:Object
 
 objHeight:Number

Returns
 Number
getXFromMargin () method 
public function getXFromMargin(obj:Object, objWidth:Number):Number

Returns object's x coodinate in pixels (if marginLeft or marginRight is set)

Parameters
 obj:Object
 
 objWidth:Number

Returns
 Number
hideGroup () method 
public function hideGroup(groupId:String):void

Hides objects with provided groupId

Parameters
 groupId:String
invalidateData () method 
public function invalidateData():void

invalidates data - the map will rebuild it's objects

invalidateObjects () method 
public function invalidateObjects():void

Invalidates MapObjects.

kilometersToPixels () method 
public function kilometersToPixels(kilometers:Number):Number

converts kilometers to pixels. Note, if the map size changes, this will also change.

Parameters
 kilometers:Number

Returns
 Number
latitudeToCoordinate () method 
public function latitudeToCoordinate(latitude:Number):Number

Converts provided latitude to y coordinate of the map

Parameters
 latitude:Number

Returns
 Number
longitudeToCoordinate () method 
public function longitudeToCoordinate(longitude:Number):Number

Converts provided longitude to x coordinate of the map

Parameters
 longitude:Number

Returns
 Number
milesToPixels () method 
public function milesToPixels(miles:Number):Number

converts miles to pixels. Note, if the map size changes, this will also change.

Parameters
 miles:Number

Returns
 Number
moveDown () method 
public function moveDown():void

Moves map down by panStepSize (property of ZoomControl)

moveLeft () method 
public function moveLeft():void

Moves map left by panStepSize (property of ZoomControl)

moveRight () method 
public function moveRight():void

Moves map right by panStepSize (property of ZoomControl)

moveUp () method 
public function moveUp():void

Moves map up by panStepSize (property of ZoomControl)

rollOutMapObject () method 
public function rollOutMapObject(mapObject:MapObject):void

Simulates a roll-out off a map object. Usefull when you want to highlight some area or movie from other control.

Parameters
 mapObject:MapObject
rollOverMapObject () method 
public function rollOverMapObject(mapObject:MapObject, showBalloon:Boolean = false):void

Simulates a roll-over of a map object. Usefull when you want to highlight some area or movie from other control.

Parameters
 mapObject:MapObject
 
 showBalloon:Boolean (default = false)
showGroup () method 
public function showGroup(value:String):void

Shows objects with provided groupId

Parameters
 value:String
zoomIn () method 
public function zoomIn():void

Zooms in. Current zoomLevel is multiplied by zoomFactor (property of ZoomControl)

zoomOut () method 
public function zoomOut():void

Zooms out. Current zoomLevel is divided by zoomFactor (property of ZoomControl)

zoomTo () method 
public function zoomTo(zLevel:Number, zX:Number, zY:Number, instantly:Boolean = false):void

Zooms the map to provided zoom level and coordinates.

Parameters
 zLevel:Number
 
 zX:Number
 
 zY:Number
 
 instantly:Boolean (default = false)
zoomToGroup () method 
public function zoomToGroup(group:String):void

zooms-in the map to so that all objects of a group would fit into AmMap container

Parameters
 group:String
zoomToLatLongRectangle () method 
public function zoomToLatLongRectangle(leftLongitude:Number, topLatitude:Number, rightLongitude:Number, bottomLatitude:Number):void

zooms the map so that the provided rectangle is visible

Parameters
 leftLongitude:Number
 
 topLatitude:Number
 
 rightLongitude:Number
 
 bottomLatitude:Number
zoomToLongLat () method 
public function zoomToLongLat(zLevel:Number, long:Number, lat:Number, instantly:Boolean = false):void

zooms in the map and places provided latitude and longitude in the center of a component container.

Parameters
 zLevel:Number
 
 long:Number
 
 lat:Number
 
 instantly:Boolean (default = false)
zoomToMapXY () method 
public function zoomToMapXY(zLevel:Number, x:Number, y:Number, instantly:Boolean = false):void

zooms the map to provided coordinates

Parameters
 zLevel:Number
 
 x:Number
 
 y:Number
 
 instantly:Boolean (default = false)
zoomToRectangle () method 
public function zoomToRectangle(rectangle:Rectangle):void

zooms the map so that the provided rectangle is visible

Parameters
 rectangle:Rectangle
zoomToSelectedObject () method 
public function zoomToSelectedObject():void

zooms to currently selected object

Event detail
clickMapObject event 
Event object type:  com.ammap.events.MapObjectEvent  

Dispatched when user clicks on a map object

dataChanged event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when data changes - new objects are added or removed or objects were invalidated

dataSetChanged event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a new DataSet is selected

homeButtonClicked event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a home button of zoom control is clicked

mapLoadingFailed event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a map loading failded

mapLoadingFinished event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a map is loaded

rollOutMapObject event  
Event object type:  com.ammap.events.MapObjectEvent  

Dispatched when user rolls-out off a map object

rollOverMapObject event  
Event object type:  com.ammap.events.MapObjectEvent  

Dispatched when user rolls-over a map object

selectedObjectChanged event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a new map object is selected

zoomCompleted event  
Event object type:  com.ammap.events.MapEvent  

Dispatched when a zoom animation is finished

Examples
amMapWithCharts
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%" xmlns:amcharts="http://www.amcharts.com/com_internal">
    
    <mx:Script>
        <![CDATA[
            import com.ammap.mapClasses.MapObject;
            import com.ammap.events.MapObjectEvent;
            import mx.collections.ArrayCollection;
            
            // map file is embeded
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
            // this is data for the chart
            [Bindable]
            private var dpGB:ArrayCollection = new ArrayCollection([{category:"sample 1",val:100}, {category:"sample 2",val:60}, {category:"sample 3",val:77}]);
            
            [Bindable]
            private var dpDE:ArrayCollection = new ArrayCollection([{category:"sample 1",val:110}, {category:"sample 2",val:90}, {category:"sample 3",val:97}]);
            
            [Bindable]
            private var dpFR:ArrayCollection = new ArrayCollection([{category:"sample 1",val:88}, {category:"sample 2",val:97}, {category:"sample 3",val:105}]);    
            
            // this method is called when user rolls-over the country
            private function setChartData(event:MapObjectEvent):void
            {
                // set data to the chart
                var mapObject:MapObject = event.mapObject;
                chart.dataProvider = mapObject.customData;
                
                // change label text
                chartLabel.text = mapObject.title;                
            }                    
            
        ]]>
    </mx:Script>
    
    <!-- This example shows how amMap can be used with amCharts (or any other component). Chart changes data when user rolls-over the country. -->
    <!-- listen to rollOverMapObject event and call setChartData -->
    <ammap:AmMap developerMode="false"
                 rollOverMapObject="{setChartData(event)}" 
                 id="ammap" 
                 width="100%" 
                 height="100%"
                 backgroundColor="#FFFFFF">
        
        <ammap:zoomControl>
            <ammap:ZoomControl buttonIconColor="#DADADA" buttonBorderColor="#DADADA"/>
        </ammap:zoomControl>
        
        <ammap:areasSettings>
            <ammap:AreasSettings unlistedAreasColor="#FFCC00"/>
        </ammap:areasSettings>
        
        <ammap:moviesSettings>
            <ammap:MoviesSettings bringForwardOnHover="true" color="#FFFFFF" rollOverColor="#CC0000" selectedColor="#000000"/>
        </ammap:moviesSettings>
        
        <ammap:dataSets>
            <ammap:DataSet
                mapClass="{_world}" 
                leftLongitude="-168.49" 
                topLatitude="83.63" 
                rightLongitude="190.3" 
                bottomLatitude="-55.58"
                zoomLevel="400" zoomLong="23.7826" zoomLat="56.9718">
                
                <!-- customData object can accept any Object - we use it to hold chart data -->
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                    <ammap:MapArea instanceName="DE" color="#CC0000" title="Germany" customData="{dpGB}"/>
                    <ammap:MapArea instanceName="FR" color="#CC0000" title="France" customData="{dpFR}"/>
                    <ammap:MapArea instanceName="GB" color="#CC0000" title="Great Britain" customData="{dpGB}"/>
                </ammap:areas>
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
    <!-- label which displays country name -->
    <mx:Label id="chartLabel" right="20" textAlign="center" width="300" top="70" fontSize="14" fontThickness="2"/>
    
    <!-- the chart -->
    <amcharts:AmSerialChart marginRight="0" marginTop="10" width="300" height="180" startDuration="1" id="chart" right="50" top="100" categoryField="category" plotAreaFillAlphas="[0.6]">
        <amcharts:graphs>
            <amcharts:AmGraph type="column" valueField="val" fillAlphas="[1]" itemColors="[0x7F8DA9,0xFEC514,0xDB4C3C]" lineAlpha="0"/>        
        </amcharts:graphs>
    </amcharts:AmSerialChart>    
    
</mx:Application>
drillDownMap
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal" 
                width="100%" 
                height="100%"
                backgroundColor="#FFFFFF">
    
    <mx:Script>
        <![CDATA[
            import com.ammap.mapClasses.MapObject;
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class;
            
            [Bindable]
            [Embed(source="../assets/maps/continents.swf")]
            private var _continents:Class;
            
            [Bindable]
            [Embed(source="../assets/icons/homeIcon.gif")]
            private var _homeIcon:Class;    
            
            private function getImageFileName(mapObject:MapObject):String
            {
                return "../assets/flags/" + MapArea(mapObject).instanceName.toLowerCase() + ".png";            
            }            
            
        ]]>
    </mx:Script>
    
    <!-- Drill-down map can be made with one amMap object and several data sets. 
    Any map object can be linked to another data set - clicking on it will tell amMap to build another map with new data. -->
    
    <!-- this button and array of countries is used by several data sets, that's why they are declared outside. -->
    <!-- this button is a link to main data set (continents map) -->
    <ammap:MapMovie movieClass="{_homeIcon}" 
                    rollOverColor="#CC0000" 
                    labelColor="#000000" 
                    labelRollOverColor="#CC0000" 
                    useTargetsZoomValues="true"
                    url="{dsMain}" 
                    marginLeft="100" 
                    marginTop="45" 
                    id="backButton">
        <ammap:label><![CDATA[<b>Back to world map</b>]]></ammap:label>
    </ammap:MapMovie>
    
    <mx:Array id="countries">
        <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
        <ammap:MapArea title="AFGHANISTAN" instanceName="AF"></ammap:MapArea>
        <ammap:MapArea title="ALAND ISLANDS" instanceName="AX"></ammap:MapArea>
        <ammap:MapArea title="ALBANIA" instanceName="AL"></ammap:MapArea>
        <ammap:MapArea title="ALGERIA" instanceName="DZ"></ammap:MapArea>
        <ammap:MapArea title="ANDORRA" instanceName="AD"></ammap:MapArea>
        <ammap:MapArea title="ANGOLA" instanceName="AO"></ammap:MapArea>
        <ammap:MapArea title="ANGUILLA" instanceName="AI"></ammap:MapArea>
        <ammap:MapArea title="ANTIGUA AND BARBUDA" instanceName="AG"></ammap:MapArea>
        <ammap:MapArea title="ARGENTINA" instanceName="AR"></ammap:MapArea>
        <ammap:MapArea title="ARMENIA" instanceName="AM"></ammap:MapArea>
        <ammap:MapArea title="ARUBA" instanceName="AW"></ammap:MapArea>
        <ammap:MapArea title="AUSTRALIA" instanceName="AU"></ammap:MapArea>
        <ammap:MapArea title="AUSTRIA" instanceName="AT"></ammap:MapArea>
        <ammap:MapArea title="AZERBAIJAN" instanceName="AZ"></ammap:MapArea>
        <ammap:MapArea title="BAHAMAS" instanceName="BS"></ammap:MapArea>
        <ammap:MapArea title="BAHRAIN" instanceName="BH"></ammap:MapArea>
        <ammap:MapArea title="BANGLADESH" instanceName="BD"></ammap:MapArea>
        <ammap:MapArea title="BARBADOS" instanceName="BB"></ammap:MapArea>
        <ammap:MapArea title="BELARUS" instanceName="BY"></ammap:MapArea>
        <ammap:MapArea title="BELGIUM" instanceName="BE"></ammap:MapArea>
        <ammap:MapArea title="BELIZE" instanceName="BZ"></ammap:MapArea>
        <ammap:MapArea title="BENIN" instanceName="BJ"></ammap:MapArea>
        <ammap:MapArea title="BERMUDA" instanceName="BM"></ammap:MapArea>
        <ammap:MapArea title="BHUTAN" instanceName="BT"></ammap:MapArea>
        <ammap:MapArea title="BOLIVIA" instanceName="BO"></ammap:MapArea>
        <ammap:MapArea title="BOSNIA AND HERZEGOVINA" instanceName="BA"></ammap:MapArea>
        <ammap:MapArea title="BOTSWANA" instanceName="BW"></ammap:MapArea>
        <ammap:MapArea title="BRAZIL" instanceName="BR"></ammap:MapArea>
        <ammap:MapArea title="BRUNEI DARUSSALAM" instanceName="BN"></ammap:MapArea>
        <ammap:MapArea title="BULGARIA" instanceName="BG"></ammap:MapArea>
        <ammap:MapArea title="BURKINA FASO" instanceName="BF"></ammap:MapArea>
        <ammap:MapArea title="BURUNDI" instanceName="BI"></ammap:MapArea>
        <ammap:MapArea title="CAMBODIA" instanceName="KH"></ammap:MapArea>
        <ammap:MapArea title="CAMEROON" instanceName="CM"></ammap:MapArea>
        <ammap:MapArea title="CANADA" instanceName="CA"></ammap:MapArea>
        <ammap:MapArea title="CAPE VERDE" instanceName="CV"></ammap:MapArea>
        <ammap:MapArea title="CAYMAN ISLANDS" instanceName="KY"></ammap:MapArea>
        <ammap:MapArea title="CENTRAL AFRICAN REPUBLIC" instanceName="CF"></ammap:MapArea>
        <ammap:MapArea title="CHAD" instanceName="TD"></ammap:MapArea>
        <ammap:MapArea title="CHILE" instanceName="CL"></ammap:MapArea>
        <ammap:MapArea title="CHINA" instanceName="CN"></ammap:MapArea>
        <ammap:MapArea title="COLOMBIA" instanceName="CO"></ammap:MapArea>
        <ammap:MapArea title="COMOROS" instanceName="KM"></ammap:MapArea>
        <ammap:MapArea title="REPUBLIC OF CONGO" instanceName="CG"></ammap:MapArea>
        <ammap:MapArea title="THE DEMOCRATIC REPUBLIC OF THE CONGO" instanceName="CD"></ammap:MapArea>
        <ammap:MapArea title="COSTA RICA" instanceName="CR"></ammap:MapArea>
        <ammap:MapArea title="COTE D'IVOIRE" instanceName="CI"></ammap:MapArea>
        <ammap:MapArea title="CROATIA" instanceName="HR"></ammap:MapArea>
        <ammap:MapArea title="CUBA" instanceName="CU"></ammap:MapArea>
        <ammap:MapArea title="CYPRUS" instanceName="CY"></ammap:MapArea>
        <ammap:MapArea title="CZECH REPUBLIC" instanceName="CZ"></ammap:MapArea>
        <ammap:MapArea title="DENMARK" instanceName="DK"></ammap:MapArea>
        <ammap:MapArea title="DJIBOUTI" instanceName="DJ"></ammap:MapArea>
        <ammap:MapArea title="DOMINICA" instanceName="DM"></ammap:MapArea>
        <ammap:MapArea title="DOMINICAN REPUBLIC" instanceName="DO"></ammap:MapArea>
        <ammap:MapArea title="ECUADOR" instanceName="EC"></ammap:MapArea>
        <ammap:MapArea title="EGYPT" instanceName="EG"></ammap:MapArea>
        <ammap:MapArea title="EL SALVADOR" instanceName="SV"></ammap:MapArea>
        <ammap:MapArea title="EQUATORIAL GUINEA" instanceName="GQ"></ammap:MapArea>
        <ammap:MapArea title="ERITREA" instanceName="ER"></ammap:MapArea>
        <ammap:MapArea title="ESTONIA" instanceName="EE"></ammap:MapArea>
        <ammap:MapArea title="ETHIOPIA" instanceName="ET"></ammap:MapArea>
        <ammap:MapArea title="FAEROE ISLANDS" instanceName="FO"></ammap:MapArea>
        <ammap:MapArea title="FALKLAND ISLANDS" instanceName="FK"></ammap:MapArea>
        <ammap:MapArea title="FIJI" instanceName="FJ"></ammap:MapArea>
        <ammap:MapArea title="FINLAND" instanceName="FI"></ammap:MapArea>
        <ammap:MapArea title="FRANCE" instanceName="FR"></ammap:MapArea>
        <ammap:MapArea title="FRENCH GUIANA" instanceName="GF"></ammap:MapArea>
        <ammap:MapArea title="GABON" instanceName="GA"></ammap:MapArea>
        <ammap:MapArea title="GAMBIA, THE" instanceName="GM"></ammap:MapArea>
        <ammap:MapArea title="GEORGIA" instanceName="GE"></ammap:MapArea>
        <ammap:MapArea title="GERMANY" instanceName="DE"></ammap:MapArea>
        <ammap:MapArea title="GHANA" instanceName="GH"></ammap:MapArea>
        <ammap:MapArea title="GREECE" instanceName="GR"></ammap:MapArea>
        <ammap:MapArea title="GREENLAND" instanceName="GL"></ammap:MapArea>
        <ammap:MapArea title="GRENADA" instanceName="GD"></ammap:MapArea>
        <ammap:MapArea title="GUADELOUPE" instanceName="GP"></ammap:MapArea>
        <ammap:MapArea title="GUATEMALA" instanceName="GT"></ammap:MapArea>
        <ammap:MapArea title="GUINEA" instanceName="GN"></ammap:MapArea>
        <ammap:MapArea title="GUINEA-BISSAU" instanceName="GW"></ammap:MapArea>
        <ammap:MapArea title="GUYANA" instanceName="GY"></ammap:MapArea>
        <ammap:MapArea title="HAITI" instanceName="HT"></ammap:MapArea>
        <ammap:MapArea title="HONDURAS" instanceName="HN"></ammap:MapArea>
        <ammap:MapArea title="HONG KONG" instanceName="HK"></ammap:MapArea>
        <ammap:MapArea title="HUNGARY" instanceName="HU"></ammap:MapArea>
        <ammap:MapArea title="ICELAND" instanceName="IS"></ammap:MapArea>
        <ammap:MapArea title="INDIA" instanceName="IN"></ammap:MapArea>
        <ammap:MapArea title="INDONESIA" instanceName="ID"></ammap:MapArea>
        <ammap:MapArea title="IRAN" instanceName="IR"></ammap:MapArea>
        <ammap:MapArea title="IRAQ" instanceName="IQ"></ammap:MapArea>
        <ammap:MapArea title="IRELAND" instanceName="IE"></ammap:MapArea>
        <ammap:MapArea title="ISRAEL" instanceName="IL"></ammap:MapArea>
        <ammap:MapArea title="ITALY" instanceName="IT"></ammap:MapArea>
        <ammap:MapArea title="JAMAICA" instanceName="JM"></ammap:MapArea>
        <ammap:MapArea title="JAPAN" instanceName="JP"></ammap:MapArea>
        <ammap:MapArea title="JORDAN" instanceName="JO"></ammap:MapArea>
        <ammap:MapArea title="KAZAKHSTAN" instanceName="KZ"></ammap:MapArea>
        <ammap:MapArea title="KENYA" instanceName="KE"></ammap:MapArea>
        <ammap:MapArea title="NAURU" instanceName="NR"></ammap:MapArea>
        <ammap:MapArea title="NORTH KOREA" instanceName="KP"></ammap:MapArea>
        <ammap:MapArea title="SOUTH KOREA" instanceName="KR"></ammap:MapArea>
        <ammap:MapArea title="KOSOVO" instanceName="KV"></ammap:MapArea>
        <ammap:MapArea title="KUWAIT" instanceName="KW"></ammap:MapArea>
        <ammap:MapArea title="KYRGYZSTAN" instanceName="KG"></ammap:MapArea>
        <ammap:MapArea title="LAO PEOPLE'S DEMOCRATIC REPUBLIC" instanceName="LA"></ammap:MapArea>
        <ammap:MapArea title="LATVIA" instanceName="LV"></ammap:MapArea>
        <ammap:MapArea title="LEBANON" instanceName="LB"></ammap:MapArea>
        <ammap:MapArea title="LESOTHO" instanceName="LS"></ammap:MapArea>
        <ammap:MapArea title="LIBERIA" instanceName="LR"></ammap:MapArea>
        <ammap:MapArea title="LIBYA" instanceName="LY"></ammap:MapArea>
        <ammap:MapArea title="LIECHTENSTEIN" instanceName="LI"></ammap:MapArea>
        <ammap:MapArea title="LITHUANIA" instanceName="LT"></ammap:MapArea>
        <ammap:MapArea title="LUXEMBOURG" instanceName="LU"></ammap:MapArea>
        <ammap:MapArea title="MACEDONIA" instanceName="MK"></ammap:MapArea>
        <ammap:MapArea title="MADAGASCAR" instanceName="MG"></ammap:MapArea>
        <ammap:MapArea title="MALAWI" instanceName="MW"></ammap:MapArea>
        <ammap:MapArea title="MALAYSIA" instanceName="MY"></ammap:MapArea>
        <ammap:MapArea title="MALI" instanceName="ML"></ammap:MapArea>
        <ammap:MapArea title="MALTA" instanceName="MT"></ammap:MapArea>
        <ammap:MapArea title="MARTINIQUE" instanceName="MQ"></ammap:MapArea>
        <ammap:MapArea title="MAURITANIA" instanceName="MR"></ammap:MapArea>
        <ammap:MapArea title="MAURITIUS" instanceName="MU"></ammap:MapArea>
        <ammap:MapArea title="MEXICO" instanceName="MX"></ammap:MapArea>
        <ammap:MapArea title="MOLDOVA" instanceName="MD"></ammap:MapArea>
        <ammap:MapArea title="MONGOLIA" instanceName="MN"></ammap:MapArea>
        <ammap:MapArea title="MONTENEGRO" instanceName="ME"></ammap:MapArea>
        <ammap:MapArea title="MONTSERRAT" instanceName="MS"></ammap:MapArea>
        <ammap:MapArea title="MOROCCO" instanceName="MA"></ammap:MapArea>
        <ammap:MapArea title="MOZAMBIQUE" instanceName="MZ"></ammap:MapArea>
        <ammap:MapArea title="MYANMAR" instanceName="MM"></ammap:MapArea>
        <ammap:MapArea title="NAMIBIA" instanceName="NA"></ammap:MapArea>
        <ammap:MapArea title="NAURU" instanceName="NR"></ammap:MapArea>
        <ammap:MapArea title="NEPAL" instanceName="NP"></ammap:MapArea>
        <ammap:MapArea title="NETHERLANDS" instanceName="NL"></ammap:MapArea>
        <ammap:MapArea title="NETHERLANDS ANTILLES" instanceName="AN"></ammap:MapArea>
        <ammap:MapArea title="NEW CALEDONIA" instanceName="NC"></ammap:MapArea>
        <ammap:MapArea title="NEW ZEALAND" instanceName="NZ"></ammap:MapArea>
        <ammap:MapArea title="NICARAGUA" instanceName="NI"></ammap:MapArea>
        <ammap:MapArea title="NIGER" instanceName="NE"></ammap:MapArea>
        <ammap:MapArea title="NIGERIA" instanceName="NG"></ammap:MapArea>
        <ammap:MapArea title="NORWAY" instanceName="NO"></ammap:MapArea>
        <ammap:MapArea title="OMAN" instanceName="OM"></ammap:MapArea>
        <ammap:MapArea title="PAKISTAN" instanceName="PK"></ammap:MapArea>
        <ammap:MapArea title="PALAU" instanceName="PW"></ammap:MapArea>
        <ammap:MapArea title="PALESTINIAN TERRITORIES" instanceName="PS"></ammap:MapArea>
        <ammap:MapArea title="PANAMA" instanceName="PA"></ammap:MapArea>
        <ammap:MapArea title="PAPUA NEW GUINEA" instanceName="PG"></ammap:MapArea>
        <ammap:MapArea title="PARAGUAY" instanceName="PY"></ammap:MapArea>
        <ammap:MapArea title="PERU" instanceName="PE"></ammap:MapArea>
        <ammap:MapArea title="PHILIPPINES" instanceName="PH"></ammap:MapArea>
        <ammap:MapArea title="POLAND" instanceName="PL"></ammap:MapArea>
        <ammap:MapArea title="PORTUGAL" instanceName="PT"></ammap:MapArea>
        <ammap:MapArea title="PUERTO RICO" instanceName="PR"></ammap:MapArea>
        <ammap:MapArea title="QATAR" instanceName="QA"></ammap:MapArea>
        <ammap:MapArea title="REUNION" instanceName="RE"></ammap:MapArea>
        <ammap:MapArea title="ROMANIA" instanceName="RO"></ammap:MapArea>
        <ammap:MapArea title="RUSSIAN FEDERATION" instanceName="RU"></ammap:MapArea>
        <ammap:MapArea title="RWANDA" instanceName="RW"></ammap:MapArea>
        <ammap:MapArea title="SAINT KITTS AND NEVIS" instanceName="KN"></ammap:MapArea>
        <ammap:MapArea title="SAINT LUCIA" instanceName="LC"></ammap:MapArea>
        <ammap:MapArea title="SAINT MARTIN" instanceName="MF"></ammap:MapArea>
        <ammap:MapArea title="SAINT VINCENT AND THE GRENADINES" instanceName="VC"></ammap:MapArea>
        <ammap:MapArea title="SAMOA" instanceName="WS"></ammap:MapArea>
        <ammap:MapArea title="SAO TOME AND PRINCIPE" instanceName="ST"></ammap:MapArea>
        <ammap:MapArea title="SAUDI ARABIA" instanceName="SA"></ammap:MapArea>
        <ammap:MapArea title="SENEGAL" instanceName="SN"></ammap:MapArea>
        <ammap:MapArea title="SERBIA" instanceName="RS"></ammap:MapArea>
        <ammap:MapArea title="SIERRA LEONE" instanceName="SL"></ammap:MapArea>
        <ammap:MapArea title="SINGAPORE" instanceName="SG"></ammap:MapArea>
        <ammap:MapArea title="SLOVAKIA" instanceName="SK"></ammap:MapArea>
        <ammap:MapArea title="SLOVENIA" instanceName="SI"></ammap:MapArea>
        <ammap:MapArea title="SOLOMON ISLANDS" instanceName="SB"></ammap:MapArea>
        <ammap:MapArea title="SOMALIA" instanceName="SO"></ammap:MapArea>
        <ammap:MapArea title="SOUTH AFRICA" instanceName="ZA"></ammap:MapArea>
        <ammap:MapArea title="SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS" instanceName="GS"></ammap:MapArea>
        <ammap:MapArea title="SPAIN" instanceName="ES"></ammap:MapArea>
        <ammap:MapArea title="SRI LANKA" instanceName="LK"></ammap:MapArea>
        <ammap:MapArea title="SUDAN" instanceName="SD"></ammap:MapArea>
        <ammap:MapArea title="SURINAME" instanceName="SR"></ammap:MapArea>
        <ammap:MapArea title="SVALBARD AND JAN MAYEN" instanceName="SJ"></ammap:MapArea>
        <ammap:MapArea title="SWAZILAND" instanceName="SZ"></ammap:MapArea>
        <ammap:MapArea title="SWEDEN" instanceName="SE"></ammap:MapArea>
        <ammap:MapArea title="SWITZERLAND" instanceName="CH"></ammap:MapArea>
        <ammap:MapArea title="SYRIAN ARAB REPUBLIC" instanceName="SY"></ammap:MapArea>
        <ammap:MapArea title="TAIWAN" instanceName="TW"></ammap:MapArea>
        <ammap:MapArea title="TAJIKISTAN" instanceName="TJ"></ammap:MapArea>
        <ammap:MapArea title="TANZANIA" instanceName="TZ"></ammap:MapArea>
        <ammap:MapArea title="THAILAND" instanceName="TH"></ammap:MapArea>
        <ammap:MapArea title="TIMOR-LESTE" instanceName="TL"></ammap:MapArea>
        <ammap:MapArea title="TOGO" instanceName="TG"></ammap:MapArea>
        <ammap:MapArea title="TONGA" instanceName="TO"></ammap:MapArea>
        <ammap:MapArea title="TRINIDAD AND TOBAGO" instanceName="TT"></ammap:MapArea>
        <ammap:MapArea title="TUNISIA" instanceName="TN"></ammap:MapArea>
        <ammap:MapArea title="TURKEY" instanceName="TR"></ammap:MapArea>
        <ammap:MapArea title="TURKMENISTAN" instanceName="TM"></ammap:MapArea>
        <ammap:MapArea title="TURKS AND CAICOS ISLANDS" instanceName="TC"></ammap:MapArea>
        <ammap:MapArea title="UGANDA" instanceName="UG"></ammap:MapArea>
        <ammap:MapArea title="UKRAINE" instanceName="UA"></ammap:MapArea>
        <ammap:MapArea title="UNITED ARAB EMIRATES" instanceName="AE"></ammap:MapArea>
        <ammap:MapArea title="UNITED KINGDOM" instanceName="GB"></ammap:MapArea>
        <ammap:MapArea title="UNITED STATES" instanceName="US"></ammap:MapArea>
        <ammap:MapArea title="URUGUAY" instanceName="UY"></ammap:MapArea>
        <ammap:MapArea title="UZBEKISTAN" instanceName="UZ"></ammap:MapArea>
        <ammap:MapArea title="VANUATU" instanceName="VU"></ammap:MapArea>
        <ammap:MapArea title="VENEZUELA" instanceName="VE"></ammap:MapArea>
        <ammap:MapArea title="VIET NAM" instanceName="VN"></ammap:MapArea>
        <ammap:MapArea title="VIRGIN ISLANDS, BRITISH" instanceName="VG"></ammap:MapArea>
        <ammap:MapArea title="VIRGIN ISLANDS, US" instanceName="VI"></ammap:MapArea>
        <ammap:MapArea title="WESTERN SAHARA" instanceName="EH"></ammap:MapArea>
        <ammap:MapArea title="YEMEN" instanceName="YE"></ammap:MapArea>
        <ammap:MapArea title="ZAMBIA" instanceName="ZM"></ammap:MapArea>
        <ammap:MapArea title="ZIMBABWE" instanceName="ZW"></ammap:MapArea>
        <ammap:MapArea title="GUERNSEY" instanceName="GG"></ammap:MapArea>
        <ammap:MapArea title="JERSEY" instanceName="JE"></ammap:MapArea>
        <ammap:MapArea title="ISLE OF MAN" instanceName="IM"></ammap:MapArea>
        <ammap:MapArea title="MALDIVES" instanceName="MV"></ammap:MapArea>        
    </mx:Array>
    
    <!-- amMap -->
    <ammap:AmMap width="100%" height="100%" backgroundColor="#FFFFFF" balloonImageNameFunction="{getImageFileName}">
        
        <!-- autoZoom must be set to true if you want to zoom-in area when user clicks on it -->
        <ammap:areasSettings>
            <ammap:AreasSettings autoZoom="true"/>
        </ammap:areasSettings>
        
        <ammap:zoomControl>
            <ammap:ZoomControl homeIconColor="#000000"/>
        </ammap:zoomControl>
        
        <!-- data sets -->
        <ammap:dataSets>
            <!-- main data set of continents map-->
            <ammap:DataSet title="main" id="dsMain" mapClass="{_continents}">                
                <ammap:areas>
                    <!-- every area has url defined, and a different data set is set for each continent -->
                    <ammap:MapArea instanceName="africa" url="{dsAfrica}" title="Africa" color="#723C1A" zoomLevel="241.559" zoomLong="5.9546" zoomLat="-77.613" passZoomValuesToTarget="true"/>
                    <ammap:MapArea instanceName="australia" url="{dsAustralia}" title="Australia and Oceania" color="#93644A" zoomLevel="477.113" zoomLong="133.3124" zoomLat="-87.2331" passZoomValuesToTarget="true"/>
                    <ammap:MapArea instanceName="europe" url="{dsEurope}" title="Europe" color="#AA805A" zoomLevel="349.924" zoomLong="8.7258" zoomLat="42.3608" passZoomValuesToTarget="true"/>
                    <ammap:MapArea instanceName="asia" url="{dsAsia}" title="Asia" color="#C8AB67" zoomLevel="235.18" zoomLong="98.2628" zoomLat="-34.5275" passZoomValuesToTarget="true"/>
                    <ammap:MapArea instanceName="north_america" url="{dsNorthAmerica}" title="North America" color="#8D725F" zoomLevel="235.18" zoomLong="-111.5557" zoomLat="19.7661" passZoomValuesToTarget="true"/>
                    <ammap:MapArea instanceName="south_america" url="{dsSouthAmerica}" title="South America" color="#BE8045" zoomLevel="241.559" zoomLong="-71.3621" zoomLat="-86.8508" passZoomValuesToTarget="true"/>                    
                </ammap:areas>
            </ammap:DataSet>
            
            <!-- data sets of continents. they are quite the same, only zoomLevel, zoomX and zoomY is different -->
            <ammap:DataSet title="afrika" id="dsAfrica" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>
            <ammap:DataSet id="dsAustralia" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>                
            <ammap:DataSet id="dsEurope" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>
            <ammap:DataSet id="dsAsia" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>
            <ammap:DataSet id="dsNorthAmerica" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>
            <ammap:DataSet id="dsSouthAmerica" mapClass="{_world}" areas="{countries}" movies="{[backButton]}"/>
        </ammap:dataSets>
    </ammap:AmMap>
</mx:Application>
flightRoutes
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%"
                backgroundColor="#FFFFFF">
    
    <mx:Script>
        <![CDATA[
            import mx.effects.easing.Sine;
            import mx.effects.easing.Linear;
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
            [Bindable]
            [Embed(source="../assets/icons/target.swf")]
            private var _target:Class    
            
            [Bindable]
            [Embed(source="../assets/icons/plane.swf")]
            private var _plane:Class                            
        ]]>
    </mx:Script>
    
    
    <!-- flight routes map -->
    <ammap:AmMap developerMode="false" id="ammap" width="100%" height="100%" backgroundColor="#FFFFFF" fontSize="15" easingFunction="{Sine.easeOut}">
        
        <ammap:zoomControl>
            <ammap:ZoomControl buttonBorderColor="#000000" buttonIconColor="#FFFFFF" homeIconColor="#000000"/>
        </ammap:zoomControl>
        
        <ammap:areasSettings>
            <ammap:AreasSettings unlistedAreasColor="#FFCC00"/>
        </ammap:areasSettings>
        
        <ammap:moviesSettings>
            <!-- centered should be set to false if default amMap icons are used, as their center is already at x=0, y=0 position -->
            <ammap:MoviesSettings centered="false" color="#FFFFFF" rollOverColor="#CC0000" selectedColor="#000000"/>
        </ammap:moviesSettings>
        
        <ammap:linesSettings>
            <ammap:LinesSettings color="#CC0000" alpha="0.4"/>
        </ammap:linesSettings>
        
        <ammap:dataSets>
            <!-- one data set is used for this map. The map is calibrated, so real longitudes and latitudes can be used for cities.
            url is set for this data set - this means it movie "london" will be selected right after the map is initialized. -->
            <ammap:DataSet                 
                mapClass="{_world}" 
                leftLongitude="-168.49" 
                topLatitude="83.63" 
                rightLongitude="190.3" 
                bottomLatitude="-55.58"
                url="{london}">
                
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                </ammap:areas>
                
                <ammap:movies>
                    
                    <!-- cities -->
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Brussels" lat="50.8371" long="4.3676"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Prague" lat="50.0878" long="14.4205"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Athens" lat="37.9792" long="23.7166"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Reykjavik" lat="64.1353" long="-21.8952"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Dublin" lat="53.3441" long="-6.2675"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Oslo" lat="59.9138" long="10.7387"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Lisbon" lat="38.7072" long="-9.1355"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Moscow" lat="55.7558" long="37.6176"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Belgrade" lat="44.8048" long="20.4781"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Bratislava" lat="48.2116" long="17.1547"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Ljubljana" lat="46.0514" long="14.5060"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Madrid" lat="40.4167" long="-3.7033"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Stockholm" lat="59.3328" long="18.0645"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Bern" lat="46.9480" long="7.4481"/>    
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Kiev" lat="50.4422" long="30.5367"/>
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="Paris" lat="48.8567" long="2.3510"/> 
                    <ammap:MapMovie  color="#CC0000" movieClass="{_target}" title="New York" lat="40.43" long="-74"/> 
                    
                    <!-- london is a different movie - it has child lines and other movies which are displayed only when user clicks on it -->
                    <ammap:MapMovie 
                        id="london" 
                        
                        color="#000000"
                        movieClass="{_target}" 
                        title="London" 
                        lat="51.5002" 
                        long="-0.1262" 
                        width="16" 
                        height="16" 
                        fixedSize="true" 
                        zoomLevel="274" zoomLong="-20.1341" zoomLat="49.1712"> 
                        
                        <!-- array of lines -->    
                        <ammap:lines>                        
                            <ammap:MapLine latArray="{[51.5002,50.4422]}" longArray="{[-0.1262,30.5367]}"/> 
                            <ammap:MapLine latArray="{[51.5002,46.9480]}" longArray="{[-0.1262,7.4481]}"/>   
                            <ammap:MapLine latArray="{[51.5002,59.3328]}" longArray="{[-0.1262,18.0645]}"/>    
                            <ammap:MapLine latArray="{[51.5002,40.4167]}" longArray="{[-0.1262,-3.7033]}"/>    
                            <ammap:MapLine latArray="{[51.5002,46.0514]}" longArray="{[-0.1262,14.5060]}"/>    
                            <ammap:MapLine latArray="{[51.5002,48.2116]}" longArray="{[-0.1262,17.1547]}"/>    
                            <ammap:MapLine latArray="{[51.5002,44.8048]}" longArray="{[-0.1262,20.4781]}"/>    
                            <ammap:MapLine latArray="{[51.5002,55.7558]}" longArray="{[-0.1262,37.6176]}"/>    
                            <ammap:MapLine latArray="{[51.5002,38.7072]}" longArray="{[-0.1262,-9.1355]}"/>    
                            <ammap:MapLine latArray="{[51.5002,54.6896]}" longArray="{[-0.1262,25.2799]}"/>
                            <!-- curved lines must have at least 3 points -->
                            <ammap:MapLine latArray="{[51.5002,59.4749,64.1353]}" longArray="{[-0.1262,-6.4367,-21.8952]}" curved="true"/>         
                            <ammap:MapLine latArray="{[51.5002,43.4357,40.43]}" longArray="{[-0.1262,-36.9038,-74]}" curved="true"/> 
                        </ammap:lines>    
                        
                        <ammap:movies>
                            <!-- this movie displays plane icon and "Flights from London" text -->
                            <ammap:MapMovie movieClass="{_plane}"
                                            
                                            marginLeft="100" marginTop="45"
                                            color="#CC0000" 
                                            labelColor="#CC0000">
                                <ammap:label><![CDATA[<b>Flights from London</b>]]></ammap:label>
                            </ammap:MapMovie>
                            
                            <!-- this movie displays "show flights from Vilnius" text and is linked to "vilnius" movie -->
                            <ammap:MapMovie
                                marginLeft="113" marginTop="55" 
                                labelColor="#000000"
                                labelRollOverColor="#CC0000"
                                labelFontSize="11" 
                                rollOverColor="#CC0000"
                                url="{vilnius}"
                                label="show flights from Vilnius"/>
                        </ammap:movies>                      
                    </ammap:MapMovie> 
                    
                    <!-- all the same as with "london" movie, but different lines and different labels -->
                    <ammap:MapMovie
                        movieClass="{_target}"
                        
                        id="vilnius" 
                        color="#000000"
                        title="Vilnius" 
                        lat="54.6896" 
                        long="25.2799" 
                        width="16" 
                        height="16"                         
                        fixedSize="true" 
                        zoomLevel="492.24" zoomLong="15.4492" zoomLat="50.2631"> 
                        
                        <ammap:lines> 
                            <ammap:MapLine latArray="{[54.6896,50.8371]}" longArray="{[25.2799,4.3676]}"/> 
                            <ammap:MapLine latArray="{[54.6896,59.9138]}" longArray="{[25.2799,10.7387]}"/>    
                            <ammap:MapLine latArray="{[54.6896,40.4167]}" longArray="{[25.2799,-3.7033]}"/>          
                            <ammap:MapLine latArray="{[54.6896,50.0878]}" longArray="{[25.2799,14.4205]}"/>    
                            <ammap:MapLine latArray="{[54.6896,48.2116]}" longArray="{[25.2799,17.1547]}"/>    
                            <ammap:MapLine latArray="{[54.6896,44.8048]}" longArray="{[25.2799,20.4781]}"/>    
                            <ammap:MapLine latArray="{[54.6896,55.7558]}" longArray="{[25.2799,37.6176]}"/>    
                            <ammap:MapLine latArray="{[54.6896,37.9792]}" longArray="{[25.2799,23.7166]}"/>    
                            <ammap:MapLine latArray="{[54.6896,54.6896]}" longArray="{[25.2799,25.2799]}"/> 
                            <ammap:MapLine latArray="{[54.6896,51.5002]}" longArray="{[25.2799,-0.1262]}"/> 
                            <ammap:MapLine latArray="{[54.6896,53.3441]}" longArray="{[25.2799,-6.2675]}"/>             
                        </ammap:lines> 
                        
                        <ammap:movies>
                            <ammap:MapMovie movieClass="{_plane}"                                
                                            marginLeft="100" marginTop="45"
                                            color="#CC0000" 
                                            labelColor="#CC0000">
                                <ammap:label><![CDATA[<b>Flights from Vilnius</b>]]></ammap:label>
                            </ammap:MapMovie>
                            <ammap:MapMovie
                                marginLeft="113" marginTop="55" 
                                labelColor="#000000"
                                labelRollOverColor="#CC0000"
                                labelFontSize="11" 
                                rollOverColor="#CC0000"
                                url="{london}"
                                label="show flights from London"/>
                        </ammap:movies>                     
                    </ammap:MapMovie>                 
                </ammap:movies>
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
</mx:Application>
groupedCountries
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%" xmlns:amcharts="http://www.amcharts.com/com_internal">
    
    <mx:Script>
        <![CDATA[
            import com.ammap.mapClasses.MapObject;
            import com.ammap.events.MapObjectEvent;
            import mx.collections.ArrayCollection;
            
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
        ]]>
    </mx:Script>
    
    <!-- This example shows how map objects can be grouped. 
    Grouped objects change colors together when user rolls-over or clicks on one of them -->
    <ammap:AmMap developerMode="false"
                 id="ammap" 
                 width="100%" 
                 height="100%"
                 backgroundColor="#FFFFFF">
        
        <ammap:zoomControl>
            <ammap:ZoomControl buttonIconColor="#DADADA" buttonBorderColor="#DADADA"/>
        </ammap:zoomControl>
        
        <ammap:areasSettings>
            <ammap:AreasSettings unlistedAreasColor="#DDDDDD" rollOverAlpha="1" rollOverColor="#CC0000" alpha="0.9" balloonText="[[title]] joined EU at [[customData]]"/>
        </ammap:areasSettings>
        
        <ammap:dataSets>
            <ammap:DataSet
                mapClass="{_world}" 
                leftLongitude="-168.49" 
                topLatitude="83.63" 
                rightLongitude="190.3" 
                bottomLatitude="-55.58"
                zoomLevel="400" zoomLong="23.7826" zoomLat="53.9362">
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                    <!-- grouping is made by setting linkWith property with array of objects to link with. -->
                    <ammap:MapArea title="Austria" id="AT" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="AT" customData="1995"></ammap:MapArea>
                    <ammap:MapArea title="Ireland" id="IE" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="IE" customData="1973"></ammap:MapArea>
                    <ammap:MapArea title="Denmark" id="DK" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="DK" customData="1973"></ammap:MapArea>
                    <ammap:MapArea title="Finland" id="FI" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="FI" customData="1995"></ammap:MapArea>
                    <ammap:MapArea title="Sweden" id="SE" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="SE" customData="1995"></ammap:MapArea>
                    <ammap:MapArea title="Great Britain" id="GB" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="GB" customData="1973"></ammap:MapArea>
                    <ammap:MapArea title="Italy" id="IT" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="IT" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="France" id="FR" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="FR" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="Spain" id="ES" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="ES" customData="1986"></ammap:MapArea>
                    <ammap:MapArea title="Greece" id="GR" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="GR" customData="1981"></ammap:MapArea>
                    <ammap:MapArea title="Germany" id="DE" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="DE" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="Belgium" id="BE" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="BE" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="Luxembourg" id="LU" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="LU" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="Netherlands" id="NL" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="NL" customData="1957"></ammap:MapArea>
                    <ammap:MapArea title="Portugal" id="PT" linkWith="{[AT,IE,DK,FI,SE,GB,IT,FR,ES,GR,DE,BE,LU,NL,PT]}" color="#3366CC" instanceName="PT" customData="1986"></ammap:MapArea>
                    
                    <ammap:MapArea title="Lithuania" id="LT" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="LT" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Latvia" id="LV" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="LV" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Czech Republic " id="CZ" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="CZ" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Slovakia" id="SK" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="SK" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Slovenia" id="SI" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="SI" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Estonia" id="EE" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="EE" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Hungary" id="HU" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="HU" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Cyprus" id="CY" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="CY" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Malta" id="MT" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="MT" customData="2004"></ammap:MapArea>
                    <ammap:MapArea title="Poland" id="PL" linkWith="{[LT,LV,CZ,SK,SI,EE,HU,CY,MT,PL]}" color="#FFCC33" instanceName="PL" customData="2004"></ammap:MapArea>
                    
                    <ammap:MapArea title="Romania" linkWith="{[BG]}" id="RO" color="#66CC99" instanceName="RO" customData="2007"></ammap:MapArea> 
                    <ammap:MapArea title="Bulgaria" linkWith="{[RO]}" id="BG" color="#66CC99" instanceName="BG" customData="2007"></ammap:MapArea>  
                    
                </ammap:areas>
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
    <!-- legend of the map -->
    <ammap:AmMapLegend 
        width="600" 
        backgroundAlpha="0.5" 
        backgroundColor="#FFFFFF" 
        bottom="15" 
        left="15" 
        borderColor="#666666"
        borderStyle="solid"
        paddingTop="10"
        paddingBottom="10"
        paddingRight="10"
        paddingLeft="10">
        
        <ammap:LegendItem text="Joined EU before 2004" markerColor="#3366CC"/>
        <ammap:LegendItem text="Joined EU at 2004" markerColor="#FFCC33"/>
        <ammap:LegendItem text="Joined EU at 2007" markerColor="#66CC99"/>        
    </ammap:AmMapLegend>
    
</mx:Application>
mapChart
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%">
    
    <mx:Script>
        <![CDATA[
            [Bindable]
            [Embed(source="../assets/maps/usa.swf")]
            private var _usa:Class
        ]]>
    </mx:Script>
    
    <!-- map chart is a map which colors areas with color corresponding to it's value.
    all you need to do is to set color and colorSolid - the other colors will be selected by the amMap -->
    <ammap:AmMap id="ammap" width="100%" height="100%" useObjectColorForBalloon="false">
        
        <ammap:areasSettings>
            <ammap:AreasSettings color="#FFFFFF" colorSolid="#000000" balloonText="[[value]] people live in [[title]]"/>
        </ammap:areasSettings>
        
        <ammap:zoomControl>
            <ammap:ZoomControl visible="false"/>
        </ammap:zoomControl>
        
        <ammap:moviesSettings>
            <ammap:MoviesSettings bringForwardOnHover="true" color="#FFFFFF" rollOverColor="#CC0000" selectedColor="#000000"/>
        </ammap:moviesSettings>
        
        <ammap:dataSets>
            <ammap:DataSet mapClass="{_usa}">
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                    <ammap:MapArea instanceName="AL" title="Alabama" value="4447100"></ammap:MapArea> 
                    <ammap:MapArea instanceName="AK" title="Alaska" value="626932"></ammap:MapArea> 
                    <ammap:MapArea instanceName="AZ" title="Arizona" value="5130632"></ammap:MapArea> 
                    <ammap:MapArea instanceName="AR" title="Arkansas" value="2673400"></ammap:MapArea> 
                    <ammap:MapArea instanceName="CA" title="California" value="33871648"></ammap:MapArea> 
                    <ammap:MapArea instanceName="CO" title="Colorado" value="4301261"></ammap:MapArea> 
                    <ammap:MapArea instanceName="CT" title="Connecticut" value="3405565"></ammap:MapArea> 
                    <ammap:MapArea instanceName="DE" title="Delaware" value="783600"></ammap:MapArea> 
                    <ammap:MapArea instanceName="DC" title="District of Columbia"></ammap:MapArea> 
                    <ammap:MapArea instanceName="FL" title="Florida" value="15982378"></ammap:MapArea> 
                    <ammap:MapArea instanceName="GA" title="Georgia" value="8186453"></ammap:MapArea> 
                    <ammap:MapArea instanceName="HI" title="Hawaii" value="1211537"></ammap:MapArea> 
                    <ammap:MapArea instanceName="ID" title="Idaho" value="1293953"></ammap:MapArea> 
                    <ammap:MapArea instanceName="IL" title="Illinois" value="12419293"></ammap:MapArea> 
                    <ammap:MapArea instanceName="IN" title="Indiana" value="6080485"></ammap:MapArea> 
                    <ammap:MapArea instanceName="IA" title="Iowa" value="2926324"></ammap:MapArea> 
                    <ammap:MapArea instanceName="KS" title="Kansas" value="2688418"></ammap:MapArea> 
                    <ammap:MapArea instanceName="KY" title="Kentucky" value="4041769"></ammap:MapArea> 
                    <ammap:MapArea instanceName="LA" title="Louisiana" value="4468976"></ammap:MapArea> 
                    <ammap:MapArea instanceName="ME" title="Maine" value="1274923"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MD" title="Maryland" value="5296486"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MA" title="Massachusetts" value="6349097"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MI" title="Michigan" value="9938444"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MN" title="Minnesota" value="4919479"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MS" title="Mississippi" value="2844658"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MO" title="Missouri" value="5595211"></ammap:MapArea> 
                    <ammap:MapArea instanceName="MT" title="Montana" value="902195"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NE" title="Nebraska" value="1711263"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NV" title="Nevada" value="1998257"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NH" title="New Hampshire" value="1235786"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NJ" title="New Jersey" value="8414350"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NM" title="New Mexico" value="1819046"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NY" title="New York" value="18976457"></ammap:MapArea> 
                    <ammap:MapArea instanceName="NC" title="North Carolina" value="8049313"></ammap:MapArea> 
                    <ammap:MapArea instanceName="ND" title="North Dakota" value="642200"></ammap:MapArea> 
                    <ammap:MapArea instanceName="OH" title="Ohio" value="11353140"></ammap:MapArea> 
                    <ammap:MapArea instanceName="OK" title="Oklahoma" value="3450654"></ammap:MapArea> 
                    <ammap:MapArea instanceName="OR" title="Oregon" value="3421399"></ammap:MapArea> 
                    <ammap:MapArea instanceName="PA" title="Pennsylvania" value="12281054"></ammap:MapArea> 
                    <ammap:MapArea instanceName="RI" title="Rhode Island" value="1048319"></ammap:MapArea> 
                    <ammap:MapArea instanceName="SC" title="South Carolina" value="4012012"></ammap:MapArea> 
                    <ammap:MapArea instanceName="SD" title="South Dakota" value="754844"></ammap:MapArea> 
                    <ammap:MapArea instanceName="TN" title="Tennessee" value="5689283"></ammap:MapArea> 
                    <ammap:MapArea instanceName="TX" title="Texas" value="20851820"></ammap:MapArea> 
                    <ammap:MapArea instanceName="UT" title="Utah" value="2233169"></ammap:MapArea> 
                    <ammap:MapArea instanceName="VT" title="Vermont" value="608827"></ammap:MapArea> 
                    <ammap:MapArea instanceName="VA" title="Virginia" value="7078515"></ammap:MapArea> 
                    <ammap:MapArea instanceName="WA" title="Washington" value="5894121"></ammap:MapArea> 
                    <ammap:MapArea instanceName="WV" title="West Virginia" value="1808344"></ammap:MapArea> 
                    <ammap:MapArea instanceName="WI" title="Wisconsin" value="5363675"></ammap:MapArea> 
                    <ammap:MapArea instanceName="WY" title="Wyoming" value="493782"></ammap:MapArea>                     
                </ammap:areas>
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
    
</mx:Application>
multiLevelMap
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%">
    
    <mx:Script>
        <![CDATA[
            import mx.effects.easing.Exponential;
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
            [Bindable]
            [Embed(source="../assets/icons/target.swf")]
            private var _target:Class                
        ]]>
    </mx:Script>
    
    <!-- This example shows how movies can be children of some area. They will be displayed only when user clicks on the area. -->
    <ammap:AmMap id="ammap" width="100%" height="100%" useObjectColorForBalloon="false">
        
        <ammap:areasSettings>
            <ammap:AreasSettings unlistedAreasColor="#888888"/>
        </ammap:areasSettings>
        
        <ammap:moviesSettings>
            <ammap:MoviesSettings bringForwardOnHover="true" color="#FFFFFF" rollOverColor="#CC0000" selectedColor="#00CC00"/>
        </ammap:moviesSettings>
        
        <ammap:dataSets>
            <ammap:DataSet mapClass="{_world}" leftLongitude="-168.49" topLatitude="83.63" rightLongitude="190.3" bottomLatitude="-55.58">
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                    <ammap:MapArea instanceName="US" autoZoom="true">
                        <ammap:movies>
                            <!-- zoomX and zoomY for these movies is not defined, in this case the 
                            map is zoomed so that the movie is in the center of a map container -->
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Montgomery" lat="32.3754" long="-86.2996"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Juneau" lat="58.3637" long="-134.5721"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Phoenix" lat="33.4483" long="-112.0738"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Little Rock" lat="34.7244" long="-92.2789"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Sacramento" lat="38.5737" long="-121.4871"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Denver" lat="39.7551" long="-104.9881"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Hartford" lat="41.7665" long="-72.6732"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Dover" lat="39.1615" long="-75.5136"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Tallahassee" lat="30.4382" long="-84.2806"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Atlanta" lat="33.7545" long="-84.3897"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Honolulu (on Oahu)" lat="21.2920" long="-157.8219"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Boise" lat="43.6021" long="-116.2125"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Springfield" lat="39.8018" long="-89.6533"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Indianapolis" lat="39.7670" long="-86.1563"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Des Moines" lat="41.5888" long="-93.6203"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Topeka" lat="39.0474" long="-95.6815"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Frankfort" lat="38.1894" long="-84.8715"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Baton Rouge" lat="30.4493" long="-91.1882"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Augusta" lat="44.3294" long="-69.7323"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Annapolis" lat="38.9693" long="-76.5197"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Boston" lat="42.3589" long="-71.0568"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Lansing" lat="42.7336" long="-84.5466"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Saint Paul" lat="44.9446" long="-93.1027"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Jackson" lat="32.3122" long="-90.1780"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Jefferson City" lat="38.5698" long="-92.1941"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Helena" lat="46.5911" long="-112.0205"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Lincoln" lat="40.8136" long="-96.7026"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Carson City" lat="39.1501" long="-119.7519"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Concord" lat="43.2314" long="-71.5597"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Trenton" lat="40.2202" long="-74.7642"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Santa Fe" lat="35.6816" long="-105.9381"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Albany" lat="42.6517" long="-73.7551"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Raleigh" lat="35.7797" long="-78.6434"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Bismarck" lat="46.8084" long="-100.7694"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Columbus" lat="39.9622" long="-83.0007"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Oklahoma City" lat="35.4931" long="-97.4591"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Salem" lat="44.9370" long="-123.0272"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Harrisburg" lat="40.2740" long="-76.8849"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Providence" lat="41.8270" long="-71.4087"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Columbia" lat="34.0007" long="-81.0353"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Pierre" lat="44.3776" long="-100.3177"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Nashville" lat="36.1589" long="-86.7821"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Austin" lat="30.2687" long="-97.7452"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Salt Lake City" lat="40.7716" long="-111.8882"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Montpelier" lat="44.2627" long="-72.5716"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Richmond" lat="37.5408" long="-77.4339"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Olympia" lat="47.0449" long="-122.9016"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Charleston" lat="38.3533" long="-81.6354"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Madison" lat="43.0632" long="-89.4007"></ammap:MapMovie>
                            <ammap:MapMovie type="bubble" zoomLevel="500" title="Cheyenne" lat="41.1389" long="-104.8165"></ammap:MapMovie>                     
                        </ammap:movies>
                        
                    </ammap:MapArea>
                </ammap:areas>
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
    
</mx:Application>
selectingMultipleAreas
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal" 
                width="100%" 
                height="100%"
                backgroundColor="#FFFFFF">
    
    
    <mx:Script>
        <![CDATA[
            import com.ammap.mapClasses.MapObject;
            import com.ammap.events.MapEvent;
            import com.ammap.events.MapObjectEvent;
            
            import flash.utils.setTimeout;
            
            [Bindable]
            [Embed(source="../assets/maps/usa.swf")]
            private var _usa:Class;
            
            // method which is called when user clicks on an area
            private function toggleSelection(event:MapObjectEvent):void
            {                 
                var mapObject:MapObject = event.mapObject;
                if(mapObject.showAsSelected)
                {
                    mapObject.showAsSelected = false;
                }
                else
                {
                    mapObject.showAsSelected = true;
                }                 
            }
        ]]>
    </mx:Script>
    
    <!-- this example shows how multiple objects can look as selected. Originally only one map object can be selected at a time
    To show multiple areas as selected showAsSelected property of MapObject is used. You can also set an array of objects directly 
    on AmMap class using showAsSelected property. -->
    
    <!-- listening to clickMapObject event --> 
    <ammap:AmMap clickMapObject="{toggleSelection(event)}" id="state_mainMap" width="100%" height="100%">
        
        <ammap:areasSettings>
            <ammap:AreasSettings rollOutAnimationDuration="1" rollOverColor="#FF9900" selectedColor="#FF0000"/>
        </ammap:areasSettings>
        
        <ammap:dataSets>
            <ammap:DataSet mapClass="{_usa}" zoomLevel="100">
                <ammap:areas>
                    <ammap:MapArea selectable="true" id="state_al" instanceName="AL" title="Alabama"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ak" instanceName="AK" title="Alaska"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_az" instanceName="AZ" title="Arizona"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ar" instanceName="AR" title="Arkansas"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ca" instanceName="CA" title="California"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_co" instanceName="CO" title="Colorado"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ct" instanceName="CT" title="Connecticut"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_de" instanceName="DE" title="Delaware"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_dc" instanceName="DC" title="District of Columbia"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_fl" instanceName="FL" title="Florida"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ga" instanceName="GA" title="Georgia"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_hi" instanceName="HI" title="Hawaii"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_id" instanceName="ID" title="Idaho"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_il" instanceName="IL" title="Illinois"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_in" instanceName="IN" title="Indiana"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ia" instanceName="IA" title="Iowa"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ks" instanceName="KS" title="Kansas"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ky" instanceName="KY" title="Kentucky"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_la" instanceName="LA" title="Louisiana"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_me" instanceName="ME" title="Maine"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_md" instanceName="MD" title="Maryland"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ma" instanceName="MA" title="Massachusetts"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_mi" instanceName="MI" title="Michigan"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_mn" instanceName="MN" title="Minnesota"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ms" instanceName="MS" title="Mississippi"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_mo" instanceName="MO" title="Missouri"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_mt" instanceName="MT" title="Montana"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ne" instanceName="NE" title="Nebraska"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nv" instanceName="NV" title="Nevada"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nh" instanceName="NH" title="New Hampshire"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nj" instanceName="NJ" title="New Jersey"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nm" instanceName="NM" title="New Mexico"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ny" instanceName="NY" title="New York"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nc" instanceName="NC" title="North Carolina"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_nd" instanceName="ND" title="North Dakota"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_oh" instanceName="OH" title="Ohio"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ok" instanceName="OK" title="Oklahoma"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_or" instanceName="OR" title="Oregon"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_pa" instanceName="PA" title="Pennsylvania"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ri" instanceName="RI" title="Rhode Island"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_sc" instanceName="SC" title="South Carolina"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_sd" instanceName="SD" title="South Dakota"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_tn" instanceName="TN" title="Tennessee"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_tx" instanceName="TX" title="Texas"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_ut" instanceName="UT" title="Utah"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_vt" instanceName="VT" title="Vermont"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_va" instanceName="VA" title="Virginia"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_wa" instanceName="WA" title="Washington"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_wv" instanceName="WV" title="West Virginia"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_wi" instanceName="WI" title="Wisconsin"></ammap:MapArea>
                    <ammap:MapArea selectable="true" id="state_wy" instanceName="WY" title="Wyoming"></ammap:MapArea>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"></ammap:MapArea>                    
                </ammap:areas>
            </ammap:DataSet>    
        </ammap:dataSets>
    </ammap:AmMap>
    
</mx:Application>
worldCapitals
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%">
    
    <mx:Script>
        <![CDATA[
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
            [Bindable]
            [Embed(source="../assets/icons/target.swf")]
            private var _target:Class                
        ]]>
    </mx:Script>
    
    <!-- AmMap can use real longitudes and latitudes to display objects. -->
    <ammap:AmMap id="ammap" width="100%" height="100%">
        
        <ammap:areasSettings>
            <ammap:AreasSettings unlistedAreasColor="#888888"/>
        </ammap:areasSettings>
        
        <ammap:moviesSettings>
            <ammap:MoviesSettings centered="false" bringForwardOnHover="true" color="#FFFFFF" rollOverColor="#CC0000" selectedColor="#000000"/>
        </ammap:moviesSettings>
        
        <ammap:dataSets>                    
            <ammap:DataSet mapClass="{_world}" leftLongitude="-168.49" topLatitude="83.63" rightLongitude="190.3" bottomLatitude="-55.58">
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                </ammap:areas>
                
                <ammap:movies>
                    <!-- zoomX and zoomY for these movies is not defined, in this case the 
                    map is zoomed so that the movie is in the center of a map container -->                                    
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Andorra la Vella" lat="42.5075" long="1.5218"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Vienna" lat="48.2092" long="16.3728"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Minsk" lat="53.9678" long="27.5766"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Brussels" lat="50.8371" long="4.3676"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Sarajevo" lat="43.8608" long="18.4214"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Sofia" lat="42.7105" long="23.3238"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Zagreb" lat="45.8150" long="15.9785"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pristina" lat="42.666667" long="21.166667"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Prague" lat="50.0878" long="14.4205"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Copenhagen" lat="55.6763" long="12.5681"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tallinn" lat="59.4389" long="24.7545"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Helsinki" lat="60.1699" long="24.9384"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Paris" lat="48.8567" long="2.3510"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Berlin" lat="52.5235" long="13.4115"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Athens" lat="37.9792" long="23.7166"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Budapest" lat="47.4984" long="19.0408"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Reykjavik" lat="64.1353" long="-21.8952"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dublin" lat="53.3441" long="-6.2675"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Rome" lat="41.8955" long="12.4823"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Riga" lat="56.9465" long="24.1049"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Vaduz" lat="47.1411" long="9.5215"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Vilnius" lat="54.6896" long="25.2799"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Luxembourg" lat="49.6100" long="6.1296"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Skopje" lat="42.0024" long="21.4361"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Valletta" lat="35.9042" long="14.5189"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Chisinau" lat="47.0167" long="28.8497"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Monaco" lat="43.7325" long="7.4189"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Podgorica" lat="42.4602" long="19.2595"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Amsterdam" lat="52.3738" long="4.8910"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Oslo" lat="59.9138" long="10.7387"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Warsaw" lat="52.2297" long="21.0122"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lisbon" lat="38.7072" long="-9.1355"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bucharest" lat="44.4479" long="26.0979"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Moscow" lat="55.7558" long="37.6176"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="San Marino" lat="43.9424" long="12.4578"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Belgrade" lat="44.8048" long="20.4781"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bratislava" lat="48.2116" long="17.1547"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ljubljana" lat="46.0514" long="14.5060"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Madrid" lat="40.4167" long="-3.7033"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Stockholm" lat="59.3328" long="18.0645"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bern" lat="46.9480" long="7.4481"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kiev" lat="50.4422" long="30.5367"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="London" lat="51.5002" long="-0.1262"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Torshavn (on Streymoy)" lat="62.0177" long="-6.7719"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Gibraltar" lat="36.1377" long="-5.3453"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint Peter Port" lat="49.4660" long="-2.5522"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Douglas" lat="54.1670" long="-4.4821"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint Helier" lat="49.1919" long="-2.1071"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Longyearbyen" lat="78.2186" long="15.6488"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kabul" lat="34.5155" long="69.1952"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Yerevan" lat="40.1596" long="44.5090"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Baku" lat="40.3834" long="49.8932"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Manama" lat="26.1921" long="50.5354"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dhaka" lat="23.7106" long="90.3978"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Thimphu" lat="27.4405" long="89.6730"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bandar Seri Begawan" lat="4.9431" long="114.9425"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Phnom Penh" lat="11.5434" long="104.8984"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Peking" lat="39.9056" long="116.3958"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nicosia" lat="35.1676" long="33.3736"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="T'bilisi / Tiflis" lat="41.7010" long="44.7930"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="New Delhi" lat="28.6353" long="77.2250"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Jakarta (on Java)" lat="-6.1862" long="106.8063"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tehran / Teheran" lat="35.7061" long="51.4358"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Baghdad" lat="33.3157" long="44.3922"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Yerushalayim / Jerusalem" lat="31.7857" long="35.2007"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tokyo" lat="35.6785" long="139.6823"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Amman" lat="31.9394" long="35.9349"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Astana" lat="51.1796" long="71.4475"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Al Kuwayt / Kuwait" lat="29.3721" long="47.9824"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bishkek" lat="42.8679" long="74.5984"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Viangchan / Vientiane" lat="17.9689" long="102.6137"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Beyrouth / Beirut" lat="33.8872" long="35.5134"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kuala Lumpur" lat="3.1502" long="101.7077"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Maale / Male (on Male)" lat="4.1742" long="73.5109"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ulaanbaatar / Ulan Bator" lat="47.9138" long="106.9220"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pyinmana" lat="19.7378" long="96.2083"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kathmandu" lat="27.7058" long="85.3157"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="P'yongyang" lat="39.0187" long="125.7468"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Masqat / Muscat" lat="23.6086" long="58.5922"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Islamabad" lat="33.6751" long="73.0946"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Manila" lat="14.5790" long="120.9726"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ad Dawhah / Doha" lat="25.2948" long="51.5082"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ar Riyad / Riyadh" lat="24.6748" long="46.6977"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Singapore" lat="1.2894" long="103.8500"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Seoul" lat="37.5139" long="126.9828"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Colombo" lat="6.9155" long="79.8572"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dimashq / Damascus" lat="33.5158" long="36.2939"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="T'ai-pei / Taipei" lat="25.0338" long="121.5645"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dushanbe" lat="38.5737" long="68.7738"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Krung Thep / Bangkok" lat="13.7573" long="100.5020"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dili" lat="-8.5662" long="125.5880"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ankara" lat="39.9439" long="32.8560"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Asgabat / Ashgabat" lat="37.9509" long="58.3794"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Abu Zaby / Abu Dhabi" lat="24.4764" long="54.3705"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Toshkent / Tashkent" lat="41.3193" long="69.2481"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ha Noi / Hanoi" lat="21.0341" long="105.8372"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="San'a' / Sanaa" lat="15.3556" long="44.2081"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint John's (on Antigua)" lat="17.1175" long="-61.8456"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Buenos Aires" lat="-34.6118" long="-58.4173"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nassau (on New Providence)" lat="25.0661" long="-77.3390"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bridgetown" lat="13.0935" long="-59.6105"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Belmopan" lat="17.2534" long="-88.7713"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Sucre" lat="-19.0421" long="-65.2559"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Brasilia" lat="-15.7801" long="-47.9292"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ottawa" lat="45.4235" long="-75.6979"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Santiago" lat="-33.4691" long="-70.6420"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bogota" lat="4.6473" long="-74.0962"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="San Jose" lat="9.9402" long="-84.1002"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="La Habana / Havana" lat="23.1333" long="-82.3667"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Roseau" lat="15.2976" long="-61.3900"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Santo Domingo" lat="18.4790" long="-69.8908"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Quito" lat="-0.2295" long="-78.5243"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="San Salvador" lat="13.7034" long="-89.2073"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint George's" lat="12.0540" long="-61.7486"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Guatemala" lat="14.6248" long="-90.5328"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Georgetown" lat="6.8046" long="-58.1548"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Port-au-Prince" lat="18.5392" long="-72.3288"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tegucigalpa" lat="14.0821" long="-87.2063"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kingston" lat="17.9927" long="-76.7920"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ciudad de Mexico" lat="19.4271" long="-99.1276"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Managua" lat="12.1475" long="-86.2734"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Panama" lat="8.9943" long="-79.5188"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Asuncion" lat="-25.3005" long="-57.6362"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lima" lat="-12.0931" long="-77.0465"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Basseterre (on St. Kitts)" lat="17.2968" long="-62.7138"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Castries" lat="13.9972" long="-60.0018"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kingstown (on St. Vincent)" lat="13.2035" long="-61.2653"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Paramaribo" lat="5.8232" long="-55.1679"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Port of Spain (on Trinidad)" lat="10.6596" long="-61.4789"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Washington" lat="38.8921" long="-77.0241"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Montevideo" lat="-34.8941" long="-56.0675"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Caracas" lat="10.4961" long="-66.8983"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="The Valley" lat="18.2249" long="-63.0669"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Oranjestad" lat="12.5246" long="-70.0265"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Hamilton (on Main Island)" lat="32.2930" long="-64.7820"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Road Town (on Tortola)" lat="18.4328" long="-64.6235"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="George Town (on Grand Cayman)" lat="19.3022" long="-81.3857"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Stanley (on East Falkland)" lat="-51.7010" long="-57.8492"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Cayenne" lat="4.9346" long="-52.3303"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nuuk" lat="64.1836" long="-51.7214"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Basse-Terre" lat="15.9985" long="-61.7220"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Fort-de-France" lat="14.5997" long="-61.0760"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Plymouth" lat="16.6802" long="-62.2014"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Willemstad (on Curacao)" lat="12.1034" long="-68.9335"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="San Juan" lat="18.4500" long="-66.0667"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint-Pierre (on St. Pierre)" lat="46.7878" long="-56.1968"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Cockburn Town (on Grand Turk)" lat="21.4608" long="-71.1363"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Charlotte Amalie (on St. Thomas)" lat="18.3405" long="-64.9326"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Alger /Algiers" lat="36.7755" long="3.0597"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Luanda" lat="-8.8159" long="13.2306"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Porto-Novo" lat="6.4779" long="2.6323"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Gaborone" lat="-24.6570" long="25.9089"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Ouagadougou" lat="12.3569" long="-1.5352"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bujumbura" lat="-3.3818" long="29.3622"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Yaounde" lat="3.8612" long="11.5217"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Praia (on Sao Tiago)" lat="14.9195" long="-23.5153"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bangui" lat="4.3621" long="18.5873"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="N'djamena" lat="12.1121" long="15.0355"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Moroni (on Njazidja)" lat="-11.7004" long="43.2412"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Brazzaville" lat="-4.2767" long="15.2662"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kinshasa" lat="-4.3369" long="15.3271"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Yamoussoukro" lat="6.8067" long="-5.2728"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Djibouti" lat="11.5806" long="43.1425"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Al Qahirah / Cairo" lat="30.0571" long="31.2272"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Malabo (on Bioko)" lat="3.7523" long="8.7741"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Asmara" lat="15.3315" long="38.9183"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Addis Ababa / Addis Abeba" lat="9.0084" long="38.7575"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Libreville" lat="0.3858" long="9.4496"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Banjul" lat="13.4399" long="-16.6775"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Accra" lat="5.5401" long="-0.2074"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Conakry" lat="9.5370" long="-13.6785"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bissau" lat="11.8598" long="-15.5875"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nairobi" lat="-1.2762" long="36.7965"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Maseru" lat="-29.2976" long="27.4854"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Monrovia" lat="6.3106" long="-10.8047"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tarabulus / Tripoli" lat="32.8830" long="13.1897"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Antananarivo" lat="-18.9201" long="47.5237"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lilongwe" lat="-13.9899" long="33.7703"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bamako" lat="12.6530" long="-7.9864"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nouakchott" lat="18.0669" long="-15.9900"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Port Louis" lat="-20.1654" long="57.4896"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Rabat" lat="33.9905" long="-6.8704"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Maputo" lat="-25.9686" long="32.5804"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Windhoek" lat="-22.5749" long="17.0805"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Niamey" lat="13.5164" long="2.1157"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Abuja" lat="9.0580" long="7.4891"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kigali" lat="-1.9441" long="30.0619"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Sao Tome (on Sao Tome)" lat="0.3360" long="6.7311"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dakar" lat="14.6953" long="-17.4439"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Victoria (on Mahe)" lat="-4.6167" long="55.4500"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Freetown" lat="8.4697" long="-13.2659"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Muqdisho / Mogadishu" lat="2.0411" long="45.3426"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pretoria" lat="-25.7463" long="28.1876"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Al Khartum / Khartoum" lat="15.6331" long="32.5330"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Mbabane" lat="-26.3186" long="31.1410"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dodoma" lat="-6.1670" long="35.7497"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lome" lat="6.1228" long="1.2255"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tunis" lat="36.8117" long="10.1761"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kampala" lat="0.3133" long="32.5714"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lusaka" lat="-15.4145" long="28.2809"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Harare" lat="-17.8227" long="31.0496"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Mamoudzou" lat="-12.7806" long="45.2278"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint Denis" lat="-20.8732" long="55.4603"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Jamestown" lat="-15.9244" long="-5.7181"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Laayoune / El Aaiun" lat="27.1536" long="-13.2033"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Canberra" lat="-35.2820" long="149.1286"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Suva (on Viti Levu)" lat="-18.1416" long="178.4419"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bairiki (on Tarawa)" lat="1.3282" long="172.9784"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dalap-Uliga-Darrit (on Majuro)" lat="7.1167" long="171.3667"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Palikir (on Pohnpei)" lat="6.9177" long="158.1854"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Yaren" lat="-0.5434" long="166.9196"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Wellington" lat="-41.2865" long="174.7762"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Melekeok (on Babelthuap)" lat="7.5007" long="134.6241"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Port Moresby" lat="-9.4656" long="147.1969"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Apia (on Upolu)" lat="-13.8314" long="-171.7518"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Honiara (on Guadalcanal)" lat="-9.4333" long="159.9500"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nuku'alofa (on Tongatapu)" lat="-21.1360" long="-175.2164"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Vaiaku (on Funafuti)" lat="-8.5210" long="179.1983"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Port Vila (on Efate)" lat="-17.7404" long="168.3210"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pago Pago (on Tutuila)" lat="-14.2793" long="-170.7009"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="The Settlement / Flying Fish Cove" lat="-10.4286" long="105.6807"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pulu Panjang / West Island" lat="-12.1869" long="96.8283"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Avarua (on Rarotonga)" lat="-21.2039" long="-159.7658"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Papeete (on Tahiti)" lat="-17.5350" long="-149.5696"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Hagatna" lat="13.4667" long="144.7470"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Noumea (on Grande Terre)" lat="-22.2758" long="166.4581"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Alofi" lat="-19.0565" long="-169.9237"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Kingston" lat="-29.0545" long="167.9666"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Garapan (on Saipan)" lat="15.2069" long="145.7197"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Adamstown (on Pitcairn)" lat="-25.0662" long="-130.1027"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Mata-Utu (on Wallis)" lat="-13.2784" long="-176.1430"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Montgomery" lat="32.3754" long="-86.2996"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Juneau" lat="58.3637" long="-134.5721"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Phoenix" lat="33.4483" long="-112.0738"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Little Rock" lat="34.7244" long="-92.2789"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Sacramento" lat="38.5737" long="-121.4871"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Denver" lat="39.7551" long="-104.9881"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Hartford" lat="41.7665" long="-72.6732"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Dover" lat="39.1615" long="-75.5136"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Tallahassee" lat="30.4382" long="-84.2806"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Atlanta" lat="33.7545" long="-84.3897"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Honolulu (on Oahu)" lat="21.2920" long="-157.8219"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Boise" lat="43.6021" long="-116.2125"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Springfield" lat="39.8018" long="-89.6533"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Indianapolis" lat="39.7670" long="-86.1563"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Des Moines" lat="41.5888" long="-93.6203"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Topeka" lat="39.0474" long="-95.6815"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Frankfort" lat="38.1894" long="-84.8715"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Baton Rouge" lat="30.4493" long="-91.1882"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Augusta" lat="44.3294" long="-69.7323"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Annapolis" lat="38.9693" long="-76.5197"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Boston" lat="42.3589" long="-71.0568"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lansing" lat="42.7336" long="-84.5466"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Saint Paul" lat="44.9446" long="-93.1027"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Jackson" lat="32.3122" long="-90.1780"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Jefferson City" lat="38.5698" long="-92.1941"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Helena" lat="46.5911" long="-112.0205"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Lincoln" lat="40.8136" long="-96.7026"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Carson City" lat="39.1501" long="-119.7519"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Concord" lat="43.2314" long="-71.5597"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Trenton" lat="40.2202" long="-74.7642"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Santa Fe" lat="35.6816" long="-105.9381"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Albany" lat="42.6517" long="-73.7551"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Raleigh" lat="35.7797" long="-78.6434"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Bismarck" lat="46.8084" long="-100.7694"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Columbus" lat="39.9622" long="-83.0007"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Oklahoma City" lat="35.4931" long="-97.4591"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Salem" lat="44.9370" long="-123.0272"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Harrisburg" lat="40.2740" long="-76.8849"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Providence" lat="41.8270" long="-71.4087"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Columbia" lat="34.0007" long="-81.0353"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Pierre" lat="44.3776" long="-100.3177"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Nashville" lat="36.1589" long="-86.7821"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Austin" lat="30.2687" long="-97.7452"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Salt Lake City" lat="40.7716" long="-111.8882"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Montpelier" lat="44.2627" long="-72.5716"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Richmond" lat="37.5408" long="-77.4339"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Olympia" lat="47.0449" long="-122.9016"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Charleston" lat="38.3533" long="-81.6354"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Madison" lat="43.0632" long="-89.4007"></ammap:MapMovie>
                    <ammap:MapMovie movieClass="{_target}" zoomLevel="500" title="Cheyenne" lat="41.1389" long="-104.8165"></ammap:MapMovie>                     
                </ammap:movies>                
            </ammap:DataSet>
        </ammap:dataSets>
    </ammap:AmMap>
    
    <!-- Object list is created as a separate component. It can also be displayed as a drop-down or Tree component -->
    <ammap:ObjectList color="#000000" amMap="{ammap}" right="10" top="10" width="180" height="100%" bottom="10">
        <ammap:list>
            <mx:List selectionColor="#000000" textSelectedColor="#FFFFFF" rollOverColor="#CC0000" backgroundAlpha="0.7"/>        
        </ammap:list>        
    </ammap:ObjectList>
    
</mx:Application>
zoomingWorldCountries
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                layout="absolute" 
                xmlns:ammap="http://www.ammap.com/com_internal"
                width="100%"
                height="100%">
    
    <mx:Script>
        <![CDATA[
            import com.ammap.mapClasses.MapArea;
            import com.ammap.mapClasses.MapObject;
            import mx.effects.easing.Exponential;
            import mx.effects.easing.Sine;
            [Bindable]
            [Embed(source="../assets/maps/world.swf")]
            private var _world:Class
            
            private function getImageFileName(mapObject:MapObject):String
            {
                return "../assets/flags/" + MapArea(mapObject).instanceName.toLowerCase() + ".png";            
            }
            
        ]]>
    </mx:Script>
    
    
    <ammap:AmMap width="100%" height="100%" balloonImageNameFunction="{getImageFileName}">
        
        <!-- if autoZoom is set to true, the area will be zoomed so that all of it is visible. 
        You can also set zoomLevel, zoomX, zoomY manually - set developerMode="true", adjust zoom and copy zoom info. -->
        <ammap:areasSettings>
            <ammap:AreasSettings autoZoom="true" rollOverColor="#CC0000" rollOverAlpha=".8" selectedColor="#CC0000"/>
        </ammap:areasSettings>
        
        
        <ammap:dataSets>
            <ammap:DataSet mapClass="{_world}" leftLongitude="-168.49" topLatitude="83.63" rightLongitude="190.3" bottomLatitude="-55.58">
                <ammap:areas>
                    <ammap:MapArea instanceName="borders" color="#FFFFFF" mouseEnabled="false"/>
                    <ammap:MapArea title="AFGHANISTAN" instanceName="AF"></ammap:MapArea>
                    <ammap:MapArea title="ALAND ISLANDS" instanceName="AX"></ammap:MapArea>
                    <ammap:MapArea title="ALBANIA" instanceName="AL"></ammap:MapArea>
                    <ammap:MapArea title="ALGERIA" instanceName="DZ"></ammap:MapArea>
                    <ammap:MapArea title="ANDORRA" instanceName="AD"></ammap:MapArea>
                    <ammap:MapArea title="ANGOLA" instanceName="AO"></ammap:MapArea>
                    <ammap:MapArea title="ANGUILLA" instanceName="AI"></ammap:MapArea>
                    <ammap:MapArea title="ANTIGUA AND BARBUDA" instanceName="AG"></ammap:MapArea>
                    <ammap:MapArea title="ARGENTINA" instanceName="AR"></ammap:MapArea>
                    <ammap:MapArea title="ARMENIA" instanceName="AM"></ammap:MapArea>
                    <ammap:MapArea title="ARUBA" instanceName="AW"></ammap:MapArea>
                    <ammap:MapArea title="AUSTRALIA" instanceName="AU"></ammap:MapArea>
                    <ammap:MapArea title="AUSTRIA" instanceName="AT"></ammap:MapArea>
                    <ammap:MapArea title="AZERBAIJAN" instanceName="AZ"></ammap:MapArea>
                    <ammap:MapArea title="BAHAMAS" instanceName="BS"></ammap:MapArea>
                    <ammap:MapArea title="BAHRAIN" instanceName="BH"></ammap:MapArea>
                    <ammap:MapArea title="BANGLADESH" instanceName="BD"></ammap:MapArea>
                    <ammap:MapArea title="BARBADOS" instanceName="BB"></ammap:MapArea>
                    <ammap:MapArea title="BELARUS" instanceName="BY"></ammap:MapArea>
                    <ammap:MapArea title="BELGIUM" instanceName="BE"></ammap:MapArea>
                    <ammap:MapArea title="BELIZE" instanceName="BZ"></ammap:MapArea>
                    <ammap:MapArea title="BENIN" instanceName="BJ"></ammap:MapArea>
                    <ammap:MapArea title="BERMUDA" instanceName="BM"></ammap:MapArea>
                    <ammap:MapArea title="BHUTAN" instanceName="BT"></ammap:MapArea>
                    <ammap:MapArea title="BOLIVIA" instanceName="BO"></ammap:MapArea>
                    <ammap:MapArea title="BOSNIA AND HERZEGOVINA" instanceName="BA"></ammap:MapArea>
                    <ammap:MapArea title="BOTSWANA" instanceName="BW"></ammap:MapArea>
                    <ammap:MapArea title="BRAZIL" instanceName="BR"></ammap:MapArea>
                    <ammap:MapArea title="BRUNEI DARUSSALAM" instanceName="BN"></ammap:MapArea>
                    <ammap:MapArea title="BULGARIA" instanceName="BG"></ammap:MapArea>
                    <ammap:MapArea title="BURKINA FASO" instanceName="BF"></ammap:MapArea>
                    <ammap:MapArea title="BURUNDI" instanceName="BI"></ammap:MapArea>
                    <ammap:MapArea title="CAMBODIA" instanceName="KH"></ammap:MapArea>
                    <ammap:MapArea title="CAMEROON" instanceName="CM"></ammap:MapArea>
                    <ammap:MapArea title="CANADA" instanceName="CA"></ammap:MapArea>
                    <ammap:MapArea title="CAPE VERDE" instanceName="CV"></ammap:MapArea>
                    <ammap:MapArea title="CAYMAN ISLANDS" instanceName="KY"></ammap:MapArea>
                    <ammap:MapArea title="CENTRAL AFRICAN REPUBLIC" instanceName="CF"></ammap:MapArea>
                    <ammap:MapArea title="CHAD" instanceName="TD"></ammap:MapArea>
                    <ammap:MapArea title="CHILE" instanceName="CL"></ammap:MapArea>
                    <ammap:MapArea title="CHINA" instanceName="CN"></ammap:MapArea>
                    <ammap:MapArea title="COLOMBIA" instanceName="CO"></ammap:MapArea>
                    <ammap:MapArea title="COMOROS" instanceName="KM"></ammap:MapArea>
                    <ammap:MapArea title="REPUBLIC OF CONGO" instanceName="CG"></ammap:MapArea>
                    <ammap:MapArea title="THE DEMOCRATIC REPUBLIC OF THE CONGO" instanceName="CD"></ammap:MapArea>
                    <ammap:MapArea title="COSTA RICA" instanceName="CR"></ammap:MapArea>
                    <ammap:MapArea title="COTE D'IVOIRE" instanceName="CI"></ammap:MapArea>
                    <ammap:MapArea title="CROATIA" instanceName="HR"></ammap:MapArea>
                    <ammap:MapArea title="CUBA" instanceName="CU"></ammap:MapArea>
                    <ammap:MapArea title="CYPRUS" instanceName="CY"></ammap:MapArea>
                    <ammap:MapArea title="CZECH REPUBLIC" instanceName="CZ"></ammap:MapArea>
                    <ammap:MapArea title="DENMARK" instanceName="DK"></ammap:MapArea>
                    <ammap:MapArea title="DJIBOUTI" instanceName="DJ"></ammap:MapArea>
                    <ammap:MapArea title="DOMINICA" instanceName="DM"></ammap:MapArea>
                    <ammap:MapArea title="DOMINICAN REPUBLIC" instanceName="DO"></ammap:MapArea>
                    <ammap:MapArea title="ECUADOR" instanceName="EC"></ammap:MapArea>
                    <ammap:MapArea title="EGYPT" instanceName="EG"></ammap:MapArea>
                    <ammap:MapArea title="EL SALVADOR" instanceName="SV"></ammap:MapArea>
                    <ammap:MapArea title="EQUATORIAL GUINEA" instanceName="GQ"></ammap:MapArea>
                    <ammap:MapArea title="ERITREA" instanceName="ER"></ammap:MapArea>
                    <ammap:MapArea title="ESTONIA" instanceName="EE"></ammap:MapArea>
                    <ammap:MapArea title="ETHIOPIA" instanceName="ET"></ammap:MapArea>
                    <ammap:MapArea title="FAEROE ISLANDS" instanceName="FO"></ammap:MapArea>
                    <ammap:MapArea title="FALKLAND ISLANDS" instanceName="FK"></ammap:MapArea>
                    <ammap:MapArea title="FIJI" instanceName="FJ"></ammap:MapArea>
                    <ammap:MapArea title="FINLAND" instanceName="FI"></ammap:MapArea>
                    <ammap:MapArea title="FRANCE" instanceName="FR"></ammap:MapArea>
                    <ammap:MapArea title="FRENCH GUIANA" instanceName="GF"></ammap:MapArea>
                    <ammap:MapArea title="GABON" instanceName="GA"></ammap:MapArea>
                    <ammap:MapArea title="GAMBIA, THE" instanceName="GM"></ammap:MapArea>
                    <ammap:MapArea title="GEORGIA" instanceName="GE"></ammap:MapArea>
                    <ammap:MapArea title="GERMANY" instanceName="DE"></ammap:MapArea>
                    <ammap:MapArea title="GHANA" instanceName="GH"></ammap:MapArea>
                    <ammap:MapArea title="GREECE" instanceName="GR"></ammap:MapArea>
                    <ammap:MapArea title="GREENLAND" instanceName="GL"></ammap:MapArea>
                    <ammap:MapArea title="GRENADA" instanceName="GD"></ammap:MapArea>
                    <ammap:MapArea title="GUADELOUPE" instanceName="GP"></ammap:MapArea>
                    <ammap:MapArea title="GUATEMALA" instanceName="GT"></ammap:MapArea>
                    <ammap:MapArea title="GUINEA" instanceName="GN"></ammap:MapArea>
                    <ammap:MapArea title="GUINEA-BISSAU" instanceName="GW"></ammap:MapArea>
                    <ammap:MapArea title="GUYANA" instanceName="GY"></ammap:MapArea>
                    <ammap:MapArea title="HAITI" instanceName="HT"></ammap:MapArea>
                    <ammap:MapArea title="HONDURAS" instanceName="HN"></ammap:MapArea>
                    <ammap:MapArea title="HONG KONG" instanceName="HK"></ammap:MapArea>
                    <ammap:MapArea title="HUNGARY" instanceName="HU"></ammap:MapArea>
                    <ammap:MapArea title="ICELAND" instanceName="IS"></ammap:MapArea>
                    <ammap:MapArea title="INDIA" instanceName="IN"></ammap:MapArea>
                    <ammap:MapArea title="INDONESIA" instanceName="ID"></ammap:MapArea>
                    <ammap:MapArea title="IRAN" instanceName="IR"></ammap:MapArea>
                    <ammap:MapArea title="IRAQ" instanceName="IQ"></ammap:MapArea>
                    <ammap:MapArea title="IRELAND" instanceName="IE"></ammap:MapArea>
                    <ammap:MapArea title="ISRAEL" instanceName="IL"></ammap:MapArea>
                    <ammap:MapArea title="ITALY" instanceName="IT"></ammap:MapArea>
                    <ammap:MapArea title="JAMAICA" instanceName="JM"></ammap:MapArea>
                    <ammap:MapArea title="JAPAN" instanceName="JP"></ammap:MapArea>
                    <ammap:MapArea title="JORDAN" instanceName="JO"></ammap:MapArea>
                    <ammap:MapArea title="KAZAKHSTAN" instanceName="KZ"></ammap:MapArea>
                    <ammap:MapArea title="KENYA" instanceName="KE"></ammap:MapArea>
                    <ammap:MapArea title="NAURU" instanceName="NR"></ammap:MapArea>
                    <ammap:MapArea title="NORTH KOREA" instanceName="KP"></ammap:MapArea>
                    <ammap:MapArea title="SOUTH KOREA" instanceName="KR"></ammap:MapArea>
                    <ammap:MapArea title="KOSOVO" instanceName="KV"></ammap:MapArea>
                    <ammap:MapArea title="KUWAIT" instanceName="KW"></ammap:MapArea>
                    <ammap:MapArea title="KYRGYZSTAN" instanceName="KG"></ammap:MapArea>
                    <ammap:MapArea title="LAO PEOPLE'S DEMOCRATIC REPUBLIC" instanceName="LA"></ammap:MapArea>
                    <ammap:MapArea title="LATVIA" instanceName="LV"></ammap:MapArea>
                    <ammap:MapArea title="LEBANON" instanceName="LB"></ammap:MapArea>
                    <ammap:MapArea title="LESOTHO" instanceName="LS"></ammap:MapArea>
                    <ammap:MapArea title="LIBERIA" instanceName="LR"></ammap:MapArea>
                    <ammap:MapArea title="LIBYA" instanceName="LY"></ammap:MapArea>
                    <ammap:MapArea title="LIECHTENSTEIN" instanceName="LI"></ammap:MapArea>
                    <ammap:MapArea title="LITHUANIA" instanceName="LT"></ammap:MapArea>
                    <ammap:MapArea title="LUXEMBOURG" instanceName="LU"></ammap:MapArea>
                    <ammap:MapArea title="MACEDONIA" instanceName="MK"></ammap:MapArea>
                    <ammap:MapArea title="MADAGASCAR" instanceName="MG"></ammap:MapArea>
                    <ammap:MapArea title="MALAWI" instanceName="MW"></ammap:MapArea>
                    <ammap:MapArea title="MALAYSIA" instanceName="MY"></ammap:MapArea>
                    <ammap:MapArea title="MALI" instanceName="ML"></ammap:MapArea>
                    <ammap:MapArea title="MALTA" instanceName="MT"></ammap:MapArea>
                    <ammap:MapArea title="MARTINIQUE" instanceName="MQ"></ammap:MapArea>
                    <ammap:MapArea title="MAURITANIA" instanceName="MR"></ammap:MapArea>
                    <ammap:MapArea title="MAURITIUS" instanceName="MU"></ammap:MapArea>
                    <ammap:MapArea title="MEXICO" instanceName="MX"></ammap:MapArea>
                    <ammap:MapArea title="MOLDOVA" instanceName="MD"></ammap:MapArea>
                    <ammap:MapArea title="MONGOLIA" instanceName="MN"></ammap:MapArea>
                    <ammap:MapArea title="MONTENEGRO" instanceName="ME"></ammap:MapArea>
                    <ammap:MapArea title="MONTSERRAT" instanceName="MS"></ammap:MapArea>
                    <ammap:MapArea title="MOROCCO" instanceName="MA"></ammap:MapArea>
                    <ammap:MapArea title="MOZAMBIQUE" instanceName="MZ"></ammap:MapArea>
                    <ammap:MapArea title="MYANMAR" instanceName="MM"></ammap:MapArea>
                    <ammap:MapArea title="NAMIBIA" instanceName="NA"></ammap:MapArea>
                    <ammap:MapArea title="NAURU" instanceName="NR"></ammap:MapArea>
                    <ammap:MapArea title="NEPAL" instanceName="NP"></ammap:MapArea>
                    <ammap:MapArea title="NETHERLANDS" instanceName="NL"></ammap:MapArea>
                    <ammap:MapArea title="NETHERLANDS ANTILLES" instanceName="AN"></ammap:MapArea>
                    <ammap:MapArea title="NEW CALEDONIA" instanceName="NC"></ammap:MapArea>
                    <ammap:MapArea title="NEW ZEALAND" instanceName="NZ"></ammap:MapArea>
                    <ammap:MapArea title="NICARAGUA" instanceName="NI"></ammap:MapArea>
                    <ammap:MapArea title="NIGER" instanceName="NE"></ammap:MapArea>
                    <ammap:MapArea title="NIGERIA" instanceName="NG"></ammap:MapArea>
                    <ammap:MapArea title="NORWAY" instanceName="NO"></ammap:MapArea>
                    <ammap:MapArea title="OMAN" instanceName="OM"></ammap:MapArea>
                    <ammap:MapArea title="PAKISTAN" instanceName="PK"></ammap:MapArea>
                    <ammap:MapArea title="PALAU" instanceName="PW"></ammap:MapArea>
                    <ammap:MapArea title="PALESTINIAN TERRITORIES" instanceName="PS"></ammap:MapArea>
                    <ammap:MapArea title="PANAMA" instanceName="PA"></ammap:MapArea>
                    <ammap:MapArea title="PAPUA NEW GUINEA" instanceName="PG"></ammap:MapArea>
                    <ammap:MapArea title="PARAGUAY" instanceName="PY"></ammap:MapArea>
                    <ammap:MapArea title="PERU" instanceName="PE"></ammap:MapArea>
                    <ammap:MapArea title="PHILIPPINES" instanceName="PH"></ammap:MapArea>
                    <ammap:MapArea title="POLAND" instanceName="PL"></ammap:MapArea>
                    <ammap:MapArea title="PORTUGAL" instanceName="PT"></ammap:MapArea>
                    <ammap:MapArea title="PUERTO RICO" instanceName="PR"></ammap:MapArea>
                    <ammap:MapArea title="QATAR" instanceName="QA"></ammap:MapArea>
                    <ammap:MapArea title="REUNION" instanceName="RE"></ammap:MapArea>
                    <ammap:MapArea title="ROMANIA" instanceName="RO"></ammap:MapArea>
                    <ammap:MapArea title="RUSSIAN FEDERATION" instanceName="RU"></ammap:MapArea>
                    <ammap:MapArea title="RWANDA" instanceName="RW"></ammap:MapArea>
                    <ammap:MapArea title="SAINT KITTS AND NEVIS" instanceName="KN"></ammap:MapArea>
                    <ammap:MapArea title="SAINT LUCIA" instanceName="LC"></ammap:MapArea>
                    <ammap:MapArea title="SAINT MARTIN" instanceName="MF"></ammap:MapArea>
                    <ammap:MapArea title="SAINT VINCENT AND THE GRENADINES" instanceName="VC"></ammap:MapArea>
                    <ammap:MapArea title="SAMOA" instanceName="WS"></ammap:MapArea>
                    <ammap:MapArea title="SAO TOME AND PRINCIPE" instanceName="ST"></ammap:MapArea>
                    <ammap:MapArea title="SAUDI ARABIA" instanceName="SA"></ammap:MapArea>
                    <ammap:MapArea title="SENEGAL" instanceName="SN"></ammap:MapArea>
                    <ammap:MapArea title="SERBIA" instanceName="RS"></ammap:MapArea>
                    <ammap:MapArea title="SIERRA LEONE" instanceName="SL"></ammap:MapArea>
                    <ammap:MapArea title="SINGAPORE" instanceName="SG"></ammap:MapArea>
                    <ammap:MapArea title="SLOVAKIA" instanceName="SK"></ammap:MapArea>
                    <ammap:MapArea title="SLOVENIA" instanceName="SI"></ammap:MapArea>
                    <ammap:MapArea title="SOLOMON ISLANDS" instanceName="SB"></ammap:MapArea>
                    <ammap:MapArea title="SOMALIA" instanceName="SO"></ammap:MapArea>
                    <ammap:MapArea title="SOUTH AFRICA" instanceName="ZA"></ammap:MapArea>
                    <ammap:MapArea title="SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS" instanceName="GS"></ammap:MapArea>
                    <ammap:MapArea title="SPAIN" instanceName="ES"></ammap:MapArea>
                    <ammap:MapArea title="SRI LANKA" instanceName="LK"></ammap:MapArea>
                    <ammap:MapArea title="SUDAN" instanceName="SD"></ammap:MapArea>
                    <ammap:MapArea title="SURINAME" instanceName="SR"></ammap:MapArea>
                    <ammap:MapArea title="SVALBARD AND JAN MAYEN" instanceName="SJ"></ammap:MapArea>
                    <ammap:MapArea title="SWAZILAND" instanceName="SZ"></ammap:MapArea>
                    <ammap:MapArea title="SWEDEN" instanceName="SE"></ammap:MapArea>
                    <ammap:MapArea title="SWITZERLAND" instanceName="CH"></ammap:MapArea>
                    <ammap:MapArea title="SYRIAN ARAB REPUBLIC" instanceName="SY"></ammap:MapArea>
                    <ammap:MapArea title="TAIWAN" instanceName="TW"></ammap:MapArea>
                    <ammap:MapArea title="TAJIKISTAN" instanceName="TJ"></ammap:MapArea>
                    <ammap:MapArea title="TANZANIA" instanceName="TZ"></ammap:MapArea>
                    <ammap:MapArea title="THAILAND" instanceName="TH"></ammap:MapArea>
                    <ammap:MapArea title="TIMOR-LESTE" instanceName="TL"></ammap:MapArea>
                    <ammap:MapArea title="TOGO" instanceName="TG"></ammap:MapArea>
                    <ammap:MapArea title="TONGA" instanceName="TO"></ammap:MapArea>
                    <ammap:MapArea title="TRINIDAD AND TOBAGO" instanceName="TT"></ammap:MapArea>
                    <ammap:MapArea title="TUNISIA" instanceName="TN"></ammap:MapArea>
                    <ammap:MapArea title="TURKEY" instanceName="TR"></ammap:MapArea>
                    <ammap:MapArea title="TURKMENISTAN" instanceName="TM"></ammap:MapArea>
                    <ammap:MapArea title="TURKS AND CAICOS ISLANDS" instanceName="TC"></ammap:MapArea>
                    <ammap:MapArea title="UGANDA" instanceName="UG"></ammap:MapArea>
                    <ammap:MapArea title="UKRAINE" instanceName="UA"></ammap:MapArea>
                    <ammap:MapArea title="UNITED ARAB EMIRATES" instanceName="AE"></ammap:MapArea>
                    <ammap:MapArea title="UNITED KINGDOM" instanceName="GB"></ammap:MapArea>
                    <ammap:MapArea title="UNITED STATES" instanceName="US"></ammap:MapArea>
                    <ammap:MapArea title="URUGUAY" instanceName="UY"></ammap:MapArea>
                    <ammap:MapArea title="UZBEKISTAN" instanceName="UZ"></ammap:MapArea>
                    <ammap:MapArea title="VANUATU" instanceName="VU"></ammap:MapArea>
                    <ammap:MapArea title="VENEZUELA" instanceName="VE"></ammap:MapArea>
                    <ammap:MapArea title="VIET NAM" instanceName="VN"></ammap:MapArea>
                    <ammap:MapArea title="VIRGIN ISLANDS, BRITISH" instanceName="VG"></ammap:MapArea>
                    <ammap:MapArea title="VIRGIN ISLANDS, US" instanceName="VI"></ammap:MapArea>
                    <ammap:MapArea title="WESTERN SAHARA" instanceName="EH"></ammap:MapArea>
                    <ammap:MapArea title="YEMEN" instanceName="YE"></ammap:MapArea>
                    <ammap:MapArea title="ZAMBIA" instanceName="ZM"></ammap:MapArea>
                    <ammap:MapArea title="ZIMBABWE" instanceName="ZW"></ammap:MapArea>
                    <ammap:MapArea title="GUERNSEY" instanceName="GG"></ammap:MapArea>
                    <ammap:MapArea title="JERSEY" instanceName="JE"></ammap:MapArea>
                    <ammap:MapArea title="ISLE OF MAN" instanceName="IM"></ammap:MapArea>
                    <ammap:MapArea title="MALDIVES" instanceName="MV"></ammap:MapArea>    
                </ammap:areas>                
            </ammap:DataSet>
        </ammap:dataSets>
        
        <ammap:smallMap>
            <ammap:SmallMap width="20%" height="20%" mapColor="#FFCC00"/>
        </ammap:smallMap>
        
    </ammap:AmMap>
</mx:Application>





;