| Package | com.esri.ags.events |
| Class | public class LayerEvent |
| Inheritance | LayerEvent flash.events.Event |
See also
| Property | Defined By | ||
|---|---|---|---|
| fault : Fault
Fault for loadError events and updateEnd events when updateSuccess is false. | LayerEvent | ||
| isInScaleRange : Boolean
The value for the associated layer's isInScaleRange property - only applies for isInScaleRangeChange events. | LayerEvent | ||
| layer : Layer
Reference to the associated layer. | LayerEvent | ||
| updateSuccess : Boolean
This is true if the update event was successful; false otherwise. | LayerEvent | ||
| Method | Defined By | ||
|---|---|---|---|
LayerEvent(type:String, layer:Layer, fault:Fault = null, updateSuccess:Boolean = false, isInScaleRange:Boolean = false)
Creates a new LayerEvent. | LayerEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| IS_IN_SCALE_RANGE_CHANGE : String = isInScaleRangeChange [static]
Defines the value of the type property of the event object for a isInScaleRangeChange event. | LayerEvent | ||
| LOAD : String = load [static]
Defines the value of the type property of the event object for a load event. | LayerEvent | ||
| LOAD_ERROR : String = loadError [static]
Defines the value of the type property of the event object for a loadError event. | LayerEvent | ||
| UPDATE_END : String = updateEnd [static]
Defines the value of the type property of the event object for a updateEnd event. | LayerEvent | ||
| UPDATE_START : String = updateStart [static]
Defines the value of the type property of the event object for a updateStart event. | LayerEvent | ||
| fault | property |
public var fault:FaultFault for loadError events and updateEnd events when updateSuccess is false.
| isInScaleRange | property |
public var isInScaleRange:BooleanThe value for the associated layer's isInScaleRange property - only applies for isInScaleRangeChange events.
| layer | property |
public var layer:LayerReference to the associated layer.
| updateSuccess | property |
public var updateSuccess:BooleanThis is true if the update event was successful; false otherwise.
| LayerEvent | () | Constructor |
public function LayerEvent(type:String, layer:Layer, fault:Fault = null, updateSuccess:Boolean = false, isInScaleRange:Boolean = false)Creates a new LayerEvent.
Parameterstype:String — The event type; indicates the action that triggered the event.
| |
layer:Layer — Reference to the associated layer.
| |
fault:Fault (default = null) — Fault for loadError events and updateEnd events when updateSuccess is false.
| |
updateSuccess:Boolean (default = false) — This is true if the update event was successful; false otherwise.
| |
isInScaleRange:Boolean (default = false) |
| IS_IN_SCALE_RANGE_CHANGE | Constant |
public static const IS_IN_SCALE_RANGE_CHANGE:String = isInScaleRangeChange
Defines the value of the type property of the event object for a isInScaleRangeChange event.
| LOAD | Constant |
public static const LOAD:String = load
Defines the value of the type property of the event object for a load event.
| LOAD_ERROR | Constant |
public static const LOAD_ERROR:String = loadError
Defines the value of the type property of the event object for a loadError event.
| UPDATE_END | Constant |
public static const UPDATE_END:String = updateEnd
Defines the value of the type property of the event object for a updateEnd event.
| UPDATE_START | Constant |
public static const UPDATE_START:String = updateStart
Defines the value of the type property of the event object for a updateStart event.