| Package | alternativa.engine3d.loaders.events |
| Class | public class LoaderProgressEvent |
| Inheritance | LoaderProgressEvent flash.events.ProgressEvent |
bytesLoaded and bytesTotal show vaues for the currently being loaded object.
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined by | ||
|---|---|---|---|
| LOADING_PROGRESS : String = "loadingProgress" [static] The value of the
type property of a loadingProgress event object. | LoaderProgressEvent | ||
| currentItem | property |
currentItem:int [read-only]The number of an element which is being loaded. Numeration starts form zero.
Implementation public function get currentItem():int
| loadingStage | property |
loadingStage:int [read-only]The type of a stage of loading progress. Allowed values are described in the LoadingStage class.
public function get loadingStage():int
See also
| totalItems | property |
totalItems:int [read-only]The total number of elements wich are being loaded at the current stage.
Implementation public function get totalItems():int
| 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.
Parameterstype:String — the type of an event |
|
loadingStage:int — the type of a stage of loading progress. Allowed values are described in the LoadingStage class. |
|
totalItems:int — the total number of elements wich are being loaded at the current stage |
|
currentItem:int — the 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
| clone | () | method |
public override function clone():EventCreates a clone of an event object.
ReturnsEvent — clone of an event object |
| toString | () | method |
public override function toString():StringCreates a string representation of an object.
ReturnsString — string representation of an object. |
| LOADING_PROGRESS | constant |
public static const LOADING_PROGRESS:String = "loadingProgress"The value of the type property of a loadingProgress event object.