Packagealternativa.engine3d.loaders.events
Classpublic class LoaderProgressEvent
InheritanceLoaderProgressEvent Inheritance flash.events.ProgressEvent

The event which is dispatched by loaders during loading process. The proerties bytesLoaded and bytesTotal show vaues for the currently being loaded object.



Public Properties
 PropertyDefined by
  currentItem : int
[read-only] The number of an element which is being loaded.
LoaderProgressEvent
  loadingStage : int
[read-only] The type of a stage of loading progress.
LoaderProgressEvent
  totalItems : int
[read-only] The total number of elements wich are being loaded at the current stage.
LoaderProgressEvent
Public Methods
 MethodDefined by
  
LoaderProgressEvent(type:String, loadingStage:int, totalItems:int, currentItem:int, bytesLoaded:uint = 0, bytesTotal:uint = 0)
Creates a new instance af an event object.
LoaderProgressEvent
  
clone():Event
Creates a clone of an event object.
LoaderProgressEvent
  
toString():String
Creates a string representation of an object.
LoaderProgressEvent
Public Constants
 ConstantDefined by
  LOADING_PROGRESS : String = "loadingProgress"
[static] The value of the type property of a loadingProgress event object.
LoaderProgressEvent
Property detail
currentItemproperty
currentItem:int  [read-only]

The number of an element which is being loaded. Numeration starts form zero.

Implementation
    public function get currentItem():int
loadingStageproperty 
loadingStage:int  [read-only]

The type of a stage of loading progress. Allowed values are described in the LoadingStage class.

Implementation
    public function get loadingStage():int

See also

totalItemsproperty 
totalItems:int  [read-only]

The total number of elements wich are being loaded at the current stage.

Implementation
    public function get totalItems():int
Constructor detail
LoaderProgressEvent()constructor
public function LoaderProgressEvent(type:String, loadingStage:int, totalItems:int, currentItem:int, bytesLoaded:uint = 0, bytesTotal:uint = 0)

Creates a new instance af an event object.

Parameters
type:Stringthe type of an event
 
loadingStage:intthe type of a stage of loading progress. Allowed values are described in the LoadingStage class.
 
totalItems:intthe total number of elements wich are being loaded at the current stage
 
currentItem:intthe number of an element which is being loaded. Numeration starts form zero.
 
bytesLoaded:uint (default = 0)the number of loaded bytes of current element
 
bytesTotal:uint (default = 0)the total number of bytes of current element

See also

Method detail
clone()method
public override function clone():Event

Creates a clone of an event object.

Returns
Eventclone of an event object
toString()method 
public override function toString():String

Creates a string representation of an object.

Returns
Stringstring representation of an object.
Constant detail
LOADING_PROGRESSconstant
public static const LOADING_PROGRESS:String = "loadingProgress"

The value of the type property of a loadingProgress event object.