@awayjs/core
Version:
AwayJS core classes
42 lines • 1.3 kB
TypeScript
import { IAsset } from '../library/IAsset';
import { EventBase } from './EventBase';
export declare class LoaderEvent extends EventBase {
/**
* Dispatched when the loading of a session and all of its dependencies is started.
*/
static LOADER_START: string;
/**
* Dispatched when the loading of a session and all of its dependencies is complete.
*/
static LOADER_COMPLETE: string;
private _url;
private _content;
private _assets;
/**
* Create a new LoaderEvent object.
*
* @param type The event type.
* @param url The url of the loaded resource.
* @param content The asset of the loaded resource.
* @param assets The assets of the loaded resource.
*/
constructor(type: string, url?: string, content?: IAsset, assets?: Array<IAsset>);
/**
* The content returned if the resource has been loaded inside a <code>Loader</code> object.
*/
get content(): IAsset;
/**
* The url of the loaded resource.
*/
get url(): string;
/**
* The error string on loadError.
*/
get assets(): IAsset[];
/**
* Clones the current event.
* @return An exact duplicate of the current event.
*/
clone(): LoaderEvent;
}
//# sourceMappingURL=LoaderEvent.d.ts.map