Packagebe.dauntless.astar.core
Classpublic class AstarEvent
InheritanceAstarEvent Inheritance flash.events.Event

The AstarEvent is dispatched by the Astar class when the path has or hasn't been found.



Public Properties
 PropertyDefined By
  request : PathRequest
[read-only] Returns the request that has been handled
AstarEvent
  result : AstarPath
[read-only] Returns the path thas has been found
AstarEvent
Public Methods
 MethodDefined By
  
AstarEvent(type:String, path:AstarPath, request:PathRequest, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new AstarEvent instance.
AstarEvent
  
clone():Event
[override]
AstarEvent
Public Constants
 ConstantDefined By
  PATH_FOUND : String = pathFound
[static] Indicates that a path has been found
AstarEvent
  PATH_NOT_FOUND : String = pathNotFound
[static] Indicates that a path couldn't be found
AstarEvent
Property Detail
requestproperty
request:PathRequest  [read-only]

Returns the request that has been handled


Implementation
    public function get request():PathRequest
resultproperty 
result:AstarPath  [read-only]

Returns the path thas has been found


Implementation
    public function get result():AstarPath
Constructor Detail
AstarEvent()Constructor
public function AstarEvent(type:String, path:AstarPath, request:PathRequest, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new AstarEvent instance.

Parameters
type:String — The type of event.
 
path:AstarPath — The path that has been found (if any)
 
request:PathRequest — The request that has been handled
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
PATH_FOUNDConstant
public static const PATH_FOUND:String = pathFound

Indicates that a path has been found

PATH_NOT_FOUNDConstant 
public static const PATH_NOT_FOUND:String = pathNotFound

Indicates that a path couldn't be found