Packagecom.ammap.mapClasses
Classpublic class MapArea
InheritanceMapArea Inheritance MapObject Inheritance flash.events.EventDispatcher

MapArea is a class where properties of areas (movieClips) in the map swf file are defined. In case some property is not defined in this class, MapArea will use AreasSettings class property with the same name.



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Opacity of MapObject
MapObject
  areaMC : MovieClip
Movie clip of the area
MapArea
  autoZoom : Boolean
specifies if the area should be zoomed-in when user clicks on it, event if zoom properties are not set
MapArea
 InheritedballoonText : String
Text which is displayed in a roll-over balloon.
MapObject
 InheritedbringForwardOnHover : Boolean
Specifies if movie or line should be moved to front level when user rolls-over it
MapObject
 Inheritedcolor : Number
Color of MapObject
MapObject
 InheritedcustomData : Object
a custom data holder
MapObject
 Inheriteddescription : String
Description of MapObject.
MapObject
 InheriteddescriptionWindowHeight : Number
Height of description window
MapObject
 InheriteddescriptionWindowY : Number
y position of description window
MapObject
 InheriteddescriptionWindowWidth : Number
Width of description window
MapObject
 InheriteddescriptionWindowX : Number
x position of description window
MapObject
 InheriteddisplayObject : DisplayObject
DisplayObject of a MapObject
MapObject
 Inheritedfilters : Array
Array of filters which will be applied to the object.
MapObject
 InheritedfixedSize : Boolean
Specifies if the object should change the size together with the map or keep fixed size.
MapObject
 InheritedgroupId : String
id of a group.
MapObject
  instanceName : String
Instance name of a movieClip.
MapArea
 Inheritedlines : Array
Array of MapLine objects
MapObject
 InheritedlinkWith : Array
Array of object id's with which this object is linked.
MapObject
 InheritedmouseEnabled : Boolean
If you want to preserve original mouse events of your movie, set this to false.
MapObject
 Inheritedmovies : Array
Array of MapMovie objects.
MapObject
 Inheritedoid : String
unique id of map object
MapObject
 InheritedpassZoomValuesToTarget : Boolean
Specifies if current zoom values should be passed to target MapObject Useful when building drill down maps.
MapObject
  preserveOriginalColors : Boolean
Specifies if the original area's color should be kept
MapArea
 InheritedremainVisible : Boolean
Specifies if the MapObject should remain visible if it was clicked and it has children MapObjects.
MapObject
 InheritedrollOverAlpha : Number
Roll over opacity
MapObject
 InheritedrollOverColor : Number
Roll over color of of the object
MapObject
 InheritedrollOverFilter : Object
filter to be applied for an object when the mouse is over it
MapObject
 Inheritedselectable : Boolean
Specifies if the object can be selected even if it is not clickable.
MapObject
 InheritedselectedColor : Number
Color of an object when it is selected (somebody clicked on it)
MapObject
 InheritedshowAsSelected : Boolean
Specifies if selectedColor should be applied to the object.
MapObject
 InheritedshowInList : Boolean
Specifies if this object must be displayed in ObjectsList Title should be defined in order the object to appear there.
MapObject
 Inheritedtitle : String
Title of a MapObject
MapObject
 Inheritedurl : Object
url of an object.
MapObject
 InheritedurlTarget : String
Target of an URL, if URL is a string.
MapObject
 InheriteduseTargetsZoomValues : Boolean
Specifies if MapObject's, specified in the url zoom values should be used.
MapObject
 Inheritedvalue : Number
Value of the object.
MapObject
 Inheritedvisible : Boolean
specifies if map object is visible
MapObject
 InheritedzoomY : Number
Specifies y position (in percents of stage height) to which map should be moved when this object is clicked You can also use zoomLat and zoomLong instead of zoomY and zoomY
MapObject
 InheritedzoomLat : Number
Specifies Latitude to which map should be moved when this object is clicked
MapObject
 InheritedzoomLevel : Number
Specifies map scale to which map should be rescaled when this object is clicked
MapObject
 InheritedzoomLong : Number
Specifies Longitude to which map should be moved when this object is clicked
MapObject
 InheritedzoomX : Number
Specifies x position (in percents of stage width) to which map should be moved when this object is clicked.
MapObject
Public Methods
 MethodDefined by
  
Constructor.
MapArea
 Inherited
addObject(object:MapObject):void
adds MapObject
MapObject
 Inherited
removeObject(object:MapObject):void
removes MapObject
MapObject
Events
 EventSummaryDefined by
 Inherited Dispatched when user clicks this map object MapObject
 Inherited Dispatched when user rolls-out off a map object MapObject
 Inherited Dispatched when user rolls-over a map object MapObject
Property detail
areaMCproperty
areaMC:MovieClip  [read-write]

Movie clip of the area

Implementation
    public function get areaMC():MovieClip
    public function set areaMC(value:MovieClip):void
autoZoomproperty 
autoZoom:Boolean  [read-write]

specifies if the area should be zoomed-in when user clicks on it, event if zoom properties are not set

The default value is false.

Implementation
    public function get autoZoom():Boolean
    public function set autoZoom(value:Boolean):void
instanceNameproperty 
instanceName:String  [read-write]

Instance name of a movieClip. Instance name is set in fla file, using Adobe Flash software. All areas of swf maps included with ammap has instance name already defined.

Implementation
    public function get instanceName():String
    public function set instanceName(value:String):void
preserveOriginalColorsproperty 
preserveOriginalColors:Boolean  [read-write]

Specifies if the original area's color should be kept

The default value is false.

Implementation
    public function get preserveOriginalColors():Boolean
    public function set preserveOriginalColors(value:Boolean):void
Constructor detail
MapArea()constructor
public function MapArea()

Constructor.