| Package | net.guttershark.support.preloading.workers |
| Class | public final class WorkerInstances |
This is used internally in an Asset. If you are adding any other types of assets to be preloaded
Default workers: bmp,jpg,jpeg,png,gif,swf,mp3,zip,xml,flv
| Method | Defined by | ||
|---|---|---|---|
|
GetWorkerInstance(fileType:String):Worker
[static]
Get an instance of the worker specified by type.
| WorkerInstances | ||
|
RegisterWorkerForFileType(fileType:String, workerKlass:Class):void
[static]
Registers a worker for a file type.
| WorkerInstances | ||
| GetWorkerInstance | () | method |
public static function GetWorkerInstance(fileType:String):WorkerGet an instance of the worker specified by type.
ParametersfileType:String — The type of the worker. EX: 'bitmap', or 'swf', etc. The Worker must
have been registered previously before getting an instnace of it.
|
Worker |
| RegisterWorkerForFileType | () | method |
public static function RegisterWorkerForFileType(fileType:String, workerKlass:Class):voidRegisters a worker for a file type. The file type string should be a file extension less the period. EX: "jpg","jpeg", etc.
ParametersfileType:String — The file type to register the worker too
|
|
workerKlass:Class — The worker class to use for the specified file type. This must be a class reference.
|