Packagecom.google.maps.services
Classpublic final class DirectionsEvent
InheritanceDirectionsEvent Inheritance MapEvent Inheritance flash.events.Event

A DirectionsEvent object is dispatched into the event flow whenever a directions request completes.



Public Properties
 PropertyDefined by
  directions : Directions
[read-only] The Directions object that created this event.
DirectionsEvent
 Inheritedfeature : Object
The object that the event refers to (such as an instance of IMapType for MapEvent.MAPTYPE_ADDED event or an instance of IControl for MapEvent.CONTROL_REMOVED).
MapEvent
  name : String
Directions request text.
DirectionsEvent
  request : String
Request type ("directions", for directions requests).
DirectionsEvent
  status : Number
Directions status.
DirectionsEvent
Public Methods
 MethodDefined by
  
DirectionsEvent(type:String, directions:IDirections, bubbles:Boolean = false, cancellable:Boolean = false)
Creates a DirectionsEvent object to pass as a parameter to event listeners.
DirectionsEvent
Public Constants
 ConstantDefined by
 InheritedCONTROL_ADDED : String = "mapevent_controladded"
[static] This event is fired on the map when a control is added to the map.
MapEvent
 InheritedCONTROL_REMOVED : String = "mapevent_controlremoved"
[static] This event is fired on the map when a control is removed from the map.
MapEvent
 InheritedCOPYRIGHTS_UPDATED : String = "mapevent_copyrightsupdated"
[static] This event is fired when the copyright that should be displayed on the map is updated.
MapEvent
  DIRECTIONS_ABORTED : String = "directionsaborted"
[static] Directions abort event ("directionsaborted").
DirectionsEvent
  DIRECTIONS_FAILURE : String = "directionsfailure"
[static] Directions failure event ("directionsfailure").
DirectionsEvent
  DIRECTIONS_SUCCESS : String = "directionssuccess"
[static] Directions succeeded event ("directionssuccess").
DirectionsEvent
 InheritedINFOWINDOW_CLOSED : String = "mapevent_infowindowclosed"
[static] This event is fired when the info window closes.
MapEvent
 InheritedINFOWINDOW_CLOSING : String = "mapevent_infowindowclosing"
[static] This event is fired before the info window closes.
MapEvent
 InheritedINFOWINDOW_OPENED : String = "mapevent_infowindowopened"
[static] This event is fired when the info window opens.
MapEvent
 InheritedMAP_PREINITIALIZE : String = "mapevent_mappreinitialize"
[static] This event is fired immediately before the map is initialized.
MapEvent
 InheritedMAP_READY : String = "mapevent_mapready"
[static] This event is fired when map initialization is complete and isLoaded() would return true.
MapEvent
 InheritedMAPTYPE_ADDED : String = "mapevent_maptypeadded"
[static] This event is fired when a new MapType has been added to the map.
MapEvent
 InheritedMAPTYPE_CHANGED : String = "maptypechanged"
[static] This event is fired when another map type is selected.
MapEvent
 InheritedMAPTYPE_REMOVED : String = "mapevent_maptyperemoved"
[static] This event is fired when a MapType has been removed from the map.
MapEvent
 InheritedOVERLAY_BEFORE_REMOVED : String = "mapevent_overlaybeforeremoved"
[static] This event is fired when an overlay is about to be removed from the map.
MapEvent
 InheritedOVERLAY_MOVED : String = "mapevent_overlaymoved"
[static] This event is fired when an overlay's position is changed.
MapEvent
 InheritedOVERLAY_REMOVED : String = "mapevent_overlayremoved"
[static] This event is fired after a single overlay is removed from the map.
MapEvent
 InheritedSIZE_CHANGED : String = "mapevent_sizechanged"
[static] This event is fired when the size of the map has changed.
MapEvent
 InheritedVISIBILITY_CHANGED : String = "mapevent_visibilitychanged"
[static] This event is fired when an overlay's visibility has changed (from visible to hidden or vice-versa).
MapEvent
Property detail
directionsproperty
directions:Directions  [read-only]

The Directions object that created this event.

Implementation
    public function get directions():Directions
nameproperty 
public var name:String

Directions request text.

requestproperty 
public var request:String

Request type ("directions", for directions requests).

statusproperty 
public var status:Number

Directions status.

Constructor detail
DirectionsEvent()constructor
public function DirectionsEvent(type:String, directions:IDirections, bubbles:Boolean = false, cancellable:Boolean = false)

Creates a DirectionsEvent object to pass as a parameter to event listeners.

Parameters
type:String — The type of the event, accessible as MapEvent.type.
 
directions:IDirections — The Directions object that created this event.
 
bubbles:Boolean (default = false) — Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false.
 
cancellable:Boolean (default = false) — Determines whether the Event object can be cancelled. The default values is false.
Constant detail
DIRECTIONS_ABORTEDconstant
public static const DIRECTIONS_ABORTED:String = "directionsaborted"

Directions abort event ("directionsaborted"). This is dispatched when either a new load() request is made or clear() is called before the previous request finishes. The new request continues as normal.

DIRECTIONS_FAILUREconstant 
public static const DIRECTIONS_FAILURE:String = "directionsfailure"

Directions failure event ("directionsfailure").

DIRECTIONS_SUCCESSconstant 
public static const DIRECTIONS_SUCCESS:String = "directionssuccess"

Directions succeeded event ("directionssuccess").