| Package | com.gaiaframework.events |
| Class | public class AssetEvent |
| Inheritance | AssetEvent flash.events.Event |
See also
| Property | Defined by | ||
|---|---|---|---|
| asset : IAsset
This is a reference to the asset (pages are a type of asset) that is currently loading.
| AssetEvent | ||
| bytes : Boolean
If the total bytes of all files are set in the xml, this flag lets you know the loaded and total properties are bytes.
| AssetEvent | ||
| loaded : int
If bytes is true, this is the number of bytes loaded so far.
| AssetEvent | ||
| perc : Number
This is the overall percentage of the load for the entire branch, which is a floating point number from 0 to 1.
| AssetEvent | ||
| total : int
If bytes is true, this is the total number of bytes of all files loading.
| AssetEvent | ||
| Constant | Defined by | ||
|---|---|---|---|
| ASSET_COMPLETE : String = "assetComplete" [static]
This event type is dispatched when loading on-demand assets and you need to know when they're finished loading.
| AssetEvent | ||
| asset | property |
public var asset:IAssetThis is a reference to the asset (pages are a type of asset) that is currently loading. In the default template, this information is used by the preloader to show the current asset being loaded and its individual progress.
| bytes | property |
public var bytes:BooleanIf the total bytes of all files are set in the xml, this flag lets you know the loaded and total properties are bytes.
| loaded | property |
public var loaded:intIf bytes is true, this is the number of bytes loaded so far. If not, this is the count of the current page or asset in the branch that is loading.
| perc | property |
public var perc:NumberThis is the overall percentage of the load for the entire branch, which is a floating point number from 0 to 1.
| total | property |
public var total:intIf bytes is true, this is the total number of bytes of all files loading. Otherwise, this is the total number of pages and/or assets in the branch that are loading.
| ASSET_COMPLETE | constant |
public static const ASSET_COMPLETE:String = "assetComplete"This event type is dispatched when loading on-demand assets and you need to know when they're finished loading.