Packagegs.preloading.workers
Classpublic final class TextWorker
InheritanceTextWorker Inheritance Worker Inheritance flash.events.EventDispatcher

The TextWorker class is a worker used to load any source that is treated as raw text. Anything can be done with the loaded text.

See also

gs.preloading.Preloader
gs.managers.AssetManager


Public Properties
 PropertyDefined by
 InheritedloaderContext : LoaderContext
The loader context for the asset being loaded.
Worker
Protected Properties
 PropertyDefined by
 Inheritedasset : Asset
The asset this worker is loading.
Worker
 Inheritedloader : *
Internal loader used for loading the asset.
Worker
 Inheritedrequest : URLRequest
The URLRequest for the asset.
Worker
Public Methods
 MethodDefined by
 Inherited
close():void
Close the internal loader.
Worker
 Inherited
dispose():void
Dispose of this worker instance.
Worker
 Inherited
GetWorkerInstance(fileType:String):Worker
[static] Get an instance of the worker specified by type.
Worker
  
load(asset:Asset):void
Load an asset that is treated as text.
TextWorker
 Inherited
[static] Registers the default worker instances internally.
Worker
 Inherited
RegisterWorkerForFileType(fileType:String, workerKlass:Class):void
[static] Registers a worker for a file type.
Worker
 Inherited
start():void
Starts loading the internal loader instance.
Worker
Protected Methods
 MethodDefined by
 Inherited
onComplete(e:Event):void
The event handler for the internal loaders complete event.
Worker
 Inherited
onHTTPStatus(hse:HTTPStatusEvent):void
The event handler for the internal loaders http status event.
Worker
 Inherited
onIOLoadError(e:IOErrorEvent):void
The event handler for the internal loaders error event.
Worker
 Inherited
onOpen(e:Event):void
The event handler for the internal loaders open event.
Worker
 Inherited
onProgress(pe:ProgressEvent):void
The event handler for the internal loaders progress.
Worker
 Inherited
onSecurityError(se:SecurityErrorEvent):void
The event handler for the internal loaders security error event.
Worker
Events
 EventSummaryDefined by
 Inherited Dispatched when the worker has completed downloading the asset.Worker
 Inherited Dispatched when there is an error loading an asset.Worker
 Inherited Dispatched when the loader starts loading the asset.Worker
 Inherited Dispatched on progress from the loader that is loading the asset.Worker
 Inherited Dispatched when an HTTPStatus event occurs from the internal loader.Worker
 Inherited Dispatched when a security error happens while attempting to load the item.Worker
Method detail
load()method
public override function load(asset:Asset):void

Load an asset that is treated as text.

Parameters
asset:Asset — The Asset instance that needs to be loaded.