Packagede.mightypirates.megazine
Interfacepublic interface IElement

Interface for the element wrapper class.



Public Properties
 PropertyDefined by
  element : AbstractElement
[read-only] Gets the actual element associated with this one.
IElement
  even : Boolean
[read-only] Tells whether this element is on an even page or not.
IElement
  priority : int
[read-only] The elements priority while loading.
IElement
Public Methods
 MethodDefined by
  
load():void
Load the element.
IElement
  
unload():void
Onload the element.
IElement
Events
 EventSummaryDefined by
   Dispatched when the element completely finished loading.IElement
   Dispatched when the element was instantiated (either by loading an external swf or by creating a new instance of an object).IElement
   Dispatched when the an error occurs while loading an element.IElement
Property detail
elementproperty
element:AbstractElement  [read-only]

Gets the actual element associated with this one. May be null if not loaded.

Implementation
    public function get element():AbstractElement
evenproperty 
even:Boolean  [read-only]

Tells whether this element is on an even page or not.

Implementation
    public function get even():Boolean
priorityproperty 
priority:int  [read-only]

The elements priority while loading. Lower = more important / earlier. The return value is dependant on the distance of the containing page to the current page, to prioritize the pages currently visible.

Implementation
    public function get priority():int
Method detail
load()method
public function load():void

Load the element. If the element is already loading, loading is cancelled and restarted.

unload()method 
public function unload():void

Onload the element. If the element is loading the loading progress is cancelled. If the element is not loaded nothing happens.

Event detail
element_completeevent 
Event object type: de.mightypirates.megazine.events.MegaZineEvent
MegaZineEvent.type property = de.mightypirates.megazine.events.MegaZineEvent.ELEMENT_COMPLETE

Dispatched when the element completely finished loading.

Event dispatched when a child element of this page completes initializing.

element_initevent  
Event object type: de.mightypirates.megazine.events.MegaZineEvent
MegaZineEvent.type property = de.mightypirates.megazine.events.MegaZineEvent.ELEMENT_INIT

Dispatched when the element was instantiated (either by loading an external swf or by creating a new instance of an object). This happens before the element actually finishes loading (ELEMENT_COMPLETE).

Event dispatched when a child element of this page completes initializing.

ioErrorevent  
Event object type: flash.events.IOErrorEvent

Dispatched when the an error occurs while loading an element.