Packagede.mightypirates.megazine.events
Classpublic class LoadStateChangeEvent
InheritanceLoadStateChangeEvent Inheritance StateChangeEvent Inheritance flash.events.Event

This class is used by the 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.



Public Properties
 PropertyDefined by
 InheritednewState : String
The new state of the object that dispatched this event.
StateChangeEvent
 InheritedoldState : String
The old state of the object that dispatched this event.
StateChangeEvent
Public Methods
 MethodDefined by
  
LoadStateChangeEvent(type:String, oldState:String, newState:String, bubbles:Boolean = false, cancelable:Boolean = false)
Creates a new MegaZine load state change event.
LoadStateChangeEvent
Public Constants
 ConstantDefined by
  LOAD_STATE_CHANGE : String = "load_state_change"
[static] Used by the MegaZine class when its loading state changes.
LoadStateChangeEvent
 InheritedSTATE_CHANGE : String = "state_change"
[static] Dispatched when the status of an object changes.
StateChangeEvent
Constructor detail
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.

Parameters
type: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.
Constant detail
LOAD_STATE_CHANGEconstant
public static const LOAD_STATE_CHANGE:String = "load_state_change"

Used by the MegaZine class when its loading state changes.