| Package | de.mightypirates.megazine.events |
| Class | public class LoadStateChangeEvent |
| Inheritance | LoadStateChangeEvent StateChangeEvent flash.events.Event |
MegaZine class to propagate state
changes of its loading state.
The load state gives information about the current loading stage of the engine, i.e. if the engine has been initialized or not, or if it is currently loading.
| Method | Defined by | ||
|---|---|---|---|
|
LoadStateChangeEvent(type:String, oldState:String, newState:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new MegaZine load state change event.
| LoadStateChangeEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| LOAD_STATE_CHANGE : String = "load_state_change" [static]
Used by the MegaZine class when its loading state changes.
| LoadStateChangeEvent | ||
![]() | STATE_CHANGE : String = "state_change" [static]
Dispatched when the status of an object changes.
| StateChangeEvent | |
| LoadStateChangeEvent | () | constructor |
public function LoadStateChangeEvent(type:String, oldState:String, newState:String, bubbles:Boolean = false, cancelable:Boolean = false)Creates a new MegaZine load state change event.
Parameterstype:String — the type of the event, accessible as
MegazineLoadStateChangeEvent.type.
|
|
oldState:String — the state before the state change took place,
accessible as
MegazineLoadStateChangeEvent.oldState.
|
|
newState:String — the state after the state change took place,
accessible as
MegazineLoadStateChangeEvent.newState.
|
|
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 values is false.
|
| LOAD_STATE_CHANGE | constant |
public static const LOAD_STATE_CHANGE:String = "load_state_change"Used by the MegaZine class when its loading state changes.