Package | org.as3coreaddendum.events |
Class | public class IndexEvent |
Inheritance | IndexEvent ![]() |
org.as3coreaddendum.system.IIndex
interface and had its "index" setter invoked.
This way the object will inform that its index was changed.
But if the object does not implement flash.events.IEventDispatcher
interface, that's ok to not dispatch this event.
Property | Defined By | ||
---|---|---|---|
index : int [read-only]
description
| IndexEvent |
Method | Defined By | ||
---|---|---|---|
IndexEvent(type:String, index:int, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor, creates a new IndexEvent object. | IndexEvent | ||
clone():Event [override]
Duplicates the instance of IndexEvent object. | IndexEvent |
Constant | Defined By | ||
---|---|---|---|
CHANGED : String = org.as3coreaddendum.events.IndexEvent.CHANGED [static] | IndexEvent |
index | property |
index:int
[read-only] description
public function get index():int
IndexEvent | () | Constructor |
public function IndexEvent(type:String, index:int, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor, creates a new IndexEvent
object.
type:String — The type of the event, accessible as Event.type .
| |
index:int — The new index value.
| |
bubbles:Boolean (default = false ) — Determines whether the Event object participates in the bubbling stage of the event flow. The default value is false .
| |
cancelable:Boolean (default = false ) — Determines whether the Event object can be canceled. The default value is false .
|
clone | () | method |
override public function clone():Event
Duplicates the instance of IndexEvent object.
Returns a new IndexEvent object that is a copy of the original instance of the IndexEvent object. You do not normally call clone()
; the EventDispatcher
class calls it automatically when you redispatch an event—that is, when you call dispatchEvent(event)
from a handler that is handling event.
The new IndexEvent object includes all the properties of the original.
ReturnsEvent — A new IndexEvent object that is identical to the original.
|
CHANGED | Constant |
public static const CHANGED:String = org.as3coreaddendum.events.IndexEvent.CHANGED