Packagecom.ammap.mapClasses
Classpublic class MapObject
InheritanceMapObject Inheritance flash.events.EventDispatcher
SubclassesDataSet, MapArea, MapLine, MapMovie

MapObject is a base class of MapMovie, MapLine, MapArea and DataSet. Note, MapObject is not a DisplayObject of the object. To access the DisplayObject, use MapArea.displayObject property.



Public Properties
 PropertyDefined by
  alpha : Number
Opacity of MapObject
MapObject
  balloonText : String
Text which is displayed in a roll-over balloon.
MapObject
  bringForwardOnHover : Boolean
Specifies if movie or line should be moved to front level when user rolls-over it
MapObject
  color : Number
Color of MapObject
MapObject
  customData : Object
a custom data holder
MapObject
  description : String
Description of MapObject.
MapObject
  descriptionWindowHeight : Number
Height of description window
MapObject
  descriptionWindowY : Number
y position of description window
MapObject
  descriptionWindowWidth : Number
Width of description window
MapObject
  descriptionWindowX : Number
x position of description window
MapObject
  displayObject : DisplayObject
DisplayObject of a MapObject
MapObject
  filters : Array
Array of filters which will be applied to the object.
MapObject
  fixedSize : Boolean
Specifies if the object should change the size together with the map or keep fixed size.
MapObject
  groupId : String
id of a group.
MapObject
  lines : Array
Array of MapLine objects
MapObject
  linkWith : Array
Array of object id's with which this object is linked.
MapObject
  mouseEnabled : Boolean
If you want to preserve original mouse events of your movie, set this to false.
MapObject
  movies : Array
Array of MapMovie objects.
MapObject
  oid : String
unique id of map object
MapObject
  passZoomValuesToTarget : Boolean
Specifies if current zoom values should be passed to target MapObject Useful when building drill down maps.
MapObject
  remainVisible : Boolean
Specifies if the MapObject should remain visible if it was clicked and it has children MapObjects.
MapObject
  rollOverAlpha : Number
Roll over opacity
MapObject
  rollOverColor : Number
Roll over color of of the object
MapObject
  rollOverFilter : Object
filter to be applied for an object when the mouse is over it
MapObject
  selectable : Boolean
Specifies if the object can be selected even if it is not clickable.
MapObject
  selectedColor : Number
Color of an object when it is selected (somebody clicked on it)
MapObject
  showAsSelected : Boolean
Specifies if selectedColor should be applied to the object.
MapObject
  showInList : Boolean
Specifies if this object must be displayed in ObjectsList Title should be defined in order the object to appear there.
MapObject
  title : String
Title of a MapObject
MapObject
  url : Object
url of an object.
MapObject
  urlTarget : String
Target of an URL, if URL is a string.
MapObject
  useTargetsZoomValues : Boolean
Specifies if MapObject's, specified in the url zoom values should be used.
MapObject
  value : Number
Value of the object.
MapObject
  visible : Boolean
specifies if map object is visible
MapObject
  zoomY : 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
  zoomLat : Number
Specifies Latitude to which map should be moved when this object is clicked
MapObject
  zoomLevel : Number
Specifies map scale to which map should be rescaled when this object is clicked
MapObject
  zoomLong : Number
Specifies Longitude to which map should be moved when this object is clicked
MapObject
  zoomX : 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.
MapObject
  
addObject(object:MapObject):void
adds MapObject
MapObject
  
removeObject(object:MapObject):void
removes MapObject
MapObject
Events
 EventSummaryDefined by
   Dispatched when user clicks this map object MapObject
   Dispatched when user rolls-out off a map object MapObject
   Dispatched when user rolls-over a map object MapObject
Property detail
alphaproperty
alpha:Number  [read-write]

Opacity of MapObject

Implementation
    public function get alpha():Number
    public function set alpha(value:Number):void
balloonTextproperty 
balloonText:String  [read-write]

Text which is displayed in a roll-over balloon. You can use the following tags: [[title]], [[description]], [[value]] and [[percents]]

Implementation
    public function get balloonText():String
    public function set balloonText(value:String):void
bringForwardOnHoverproperty 
bringForwardOnHover:Boolean  [read-write]

Specifies if movie or line should be moved to front level when user rolls-over it

The default value is false.

Implementation
    public function get bringForwardOnHover():Boolean
    public function set bringForwardOnHover(value:Boolean):void
colorproperty 
color:Number  [read-write]

Color of MapObject

Implementation
    public function get color():Number
    public function set color(value:Number):void
customDataproperty 
customData:Object  [read-write]

a custom data holder

Implementation
    public function get customData():Object
    public function set customData(value:Object):void
descriptionproperty 
description:String  [read-write]

Description of MapObject. Description is displayed in DescriptionWindow (when user clicks on an object). It can also be displayed in a roll-over balloon.

Implementation
    public function get description():String
    public function set description(value:String):void
descriptionWindowHeightproperty 
descriptionWindowHeight:Number  [read-write]

Height of description window

Implementation
    public function get descriptionWindowHeight():Number
    public function set descriptionWindowHeight(value:Number):void
descriptionWindowYproperty 
descriptionWindowY:Number  [read-write]

y position of description window

Implementation
    public function get descriptionWindowY():Number
    public function set descriptionWindowY(value:Number):void
descriptionWindowWidthproperty 
descriptionWindowWidth:Number  [read-write]

Width of description window

Implementation
    public function get descriptionWindowWidth():Number
    public function set descriptionWindowWidth(value:Number):void
descriptionWindowXproperty 
descriptionWindowX:Number  [read-write]

x position of description window

Implementation
    public function get descriptionWindowX():Number
    public function set descriptionWindowX(value:Number):void
displayObjectproperty 
displayObject:DisplayObject  [read-write]

DisplayObject of a MapObject

Implementation
    public function get displayObject():DisplayObject
    public function set displayObject(value:DisplayObject):void
filtersproperty 
filters:Array  [read-write]

Array of filters which will be applied to the object. MapAreas will only display these filters correctly if preserveOriginalColors property of MapArea is set to true.

Implementation
    public function get filters():Array
    public function set filters(value:Array):void
fixedSizeproperty 
fixedSize:Boolean  [read-write]

Specifies if the object should change the size together with the map or keep fixed size. This applies for objects with lat and long properties set, as they move together with the map.

The default value is true;.

Implementation
    public function get fixedSize():Boolean
    public function set fixedSize(value:Boolean):void
groupIdproperty 
groupId:String  [read-write]

id of a group. You can group MapObjects to groups and then show/hide them using showGroup(groupId) and hideGroup(groupId) methods of AmMap class.

Implementation
    public function get groupId():String
    public function set groupId(value:String):void
linesproperty 
lines:Array  [read-write]

Array of MapLine objects

Implementation
    public function get lines():Array
    public function set lines(value:Array):void
linkWithproperty 
linkWith:Array  [read-write]

Array of object id's with which this object is linked. Linked objects will change color together with this object when you roll-over it or click it.

Implementation
    public function get linkWith():Array
    public function set linkWith(value:Array):void
mouseEnabledproperty 
mouseEnabled:Boolean  [read-write]

If you want to preserve original mouse events of your movie, set this to false.

The default value is true.

Implementation
    public function get mouseEnabled():Boolean
    public function set mouseEnabled(value:Boolean):void
moviesproperty 
movies:Array  [read-write]

Array of MapMovie objects.

Implementation
    public function get movies():Array
    public function set movies(value:Array):void
oidproperty 
oid:String  [read-write]

unique id of map object

Implementation
    public function get oid():String
    public function set oid(value:String):void
passZoomValuesToTargetproperty 
passZoomValuesToTarget:Boolean  [read-write]

Specifies if current zoom values should be passed to target MapObject Useful when building drill down maps.

Implementation
    public function get passZoomValuesToTarget():Boolean
    public function set passZoomValuesToTarget(value:Boolean):void
remainVisibleproperty 
remainVisible:Boolean  [read-write]

Specifies if the MapObject should remain visible if it was clicked and it has children MapObjects.

The default value is true.

Implementation
    public function get remainVisible():Boolean
    public function set remainVisible(value:Boolean):void
rollOverAlphaproperty 
rollOverAlpha:Number  [read-write]

Roll over opacity

Implementation
    public function get rollOverAlpha():Number
    public function set rollOverAlpha(value:Number):void
rollOverColorproperty 
rollOverColor:Number  [read-write]

Roll over color of of the object

Implementation
    public function get rollOverColor():Number
    public function set rollOverColor(value:Number):void
rollOverFilterproperty 
rollOverFilter:Object  [read-write]

filter to be applied for an object when the mouse is over it

Implementation
    public function get rollOverFilter():Object
    public function set rollOverFilter(value:Object):void
selectableproperty 
selectable:Boolean  [read-write]

Specifies if the object can be selected even if it is not clickable. Map objects are clickable if zoom properties are set or it has description or has children objects. Sometimes even non of the listed conditions is met you might need it to be clickable. You should set this property to true in this case.

Implementation
    public function get selectable():Boolean
    public function set selectable(value:Boolean):void
selectedColorproperty 
selectedColor:Number  [read-write]

Color of an object when it is selected (somebody clicked on it)

Implementation
    public function get selectedColor():Number
    public function set selectedColor(value:Number):void
showAsSelectedproperty 
showAsSelected:Boolean  [read-write]

Specifies if selectedColor should be applied to the object. AmMap can have only one selected item at a time, however there might be situations when multiple objects (areas, movies, lines) have to look like they are selected. By setting this property to true, you will be able to produce this result.

Implementation
    public function get showAsSelected():Boolean
    public function set showAsSelected(value:Boolean):void
showInListproperty 
showInList:Boolean  [read-write]

Specifies if this object must be displayed in ObjectsList Title should be defined in order the object to appear there.

The default value is true.

Implementation
    public function get showInList():Boolean
    public function set showInList(value:Boolean):void
titleproperty 
title:String  [read-write]

Title of a MapObject

Implementation
    public function get title():String
    public function set title(value:String):void
urlproperty 
url:Object  [read-write]

url of an object. url of an object can be a real URL (string) - the application will go to this url when you click on the object. Note, this might work only if you upload the application to web server (for security restrictions).

It can also be id of other MapObject - MapArea, MapMovie, MapLine or DataSet. Then user clicks on this object the application would zoom-in to this objects' zoom position (if it is set) and then act as if the object specified in the url was clicked.

This can be used for selecting the object you want to be selected right after the map is initialized, as DataSet extends MapObject class, you can specify url for your DataSets.

Implementation
    public function get url():Object
    public function set url(value:Object):void
urlTargetproperty 
urlTarget:String  [read-write]

Target of an URL, if URL is a string.

The default value is _self.

Implementation
    public function get urlTarget():String
    public function set urlTarget(value:String):void
useTargetsZoomValuesproperty 
useTargetsZoomValues:Boolean  [read-write]

Specifies if MapObject's, specified in the url zoom values should be used. Useful when building drill down maps.

The default value is false.

Implementation
    public function get useTargetsZoomValues():Boolean
    public function set useTargetsZoomValues(value:Boolean):void
valueproperty 
value:Number  [read-write]

Value of the object. It affects areas only. Areas will be filled with color range from AreasSettings.color to AreasSettings.colorSolid, depending on the value.

Implementation
    public function get value():Number
    public function set value(value:Number):void
visibleproperty 
visible:Boolean  [read-write]

specifies if map object is visible

The default value is true.

Implementation
    public function get visible():Boolean
    public function set visible(value:Boolean):void
zoomYproperty 
zoomY:Number  [read-write]

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

Implementation
    public function get zoomY():Number
    public function set zoomY(value:Number):void
zoomLatproperty 
zoomLat:Number  [read-write]

Specifies Latitude to which map should be moved when this object is clicked

Implementation
    public function get zoomLat():Number
    public function set zoomLat(value:Number):void
zoomLevelproperty 
zoomLevel:Number  [read-write]

Specifies map scale to which map should be rescaled when this object is clicked

Implementation
    public function get zoomLevel():Number
    public function set zoomLevel(value:Number):void
zoomLongproperty 
zoomLong:Number  [read-write]

Specifies Longitude to which map should be moved when this object is clicked

Implementation
    public function get zoomLong():Number
    public function set zoomLong(value:Number):void
zoomXproperty 
zoomX:Number  [read-write]

Specifies x position (in percents of stage width) to which map should be moved when this object is clicked. You can also use zoomLat and zoomLong instead of zoomY and zoomY

Implementation
    public function get zoomX():Number
    public function set zoomX(value:Number):void
Constructor detail
MapObject()constructor
public function MapObject()

Constructor.

Method detail
addObject()method
public function addObject(object:MapObject):void

adds MapObject

Parameters
object:MapObject
removeObject()method 
public function removeObject(object:MapObject):void

removes MapObject

Parameters
object:MapObject
Event detail
clickevent 
Event object type: flash.events.MouseEvent

Dispatched when user clicks this map object

rollOutevent  
Event object type: flash.events.MouseEvent

Dispatched when user rolls-out off a map object

rollOverevent  
Event object type: flash.events.MouseEvent

Dispatched when user rolls-over a map object