Packagecom.acleveraddress.net.multi_loader.items.types
Classpublic class MultiLoaderTextItem
InheritanceMultiLoaderTextItem Inheritance MultiLoaderItem Inheritance AbstractDisplay Inheritance flash.display.Sprite
SubclassesMultiLoaderXMLItem



Public Properties
 PropertyDefined by
 Inheritedattempts : uint
MultiLoaderItem
 InheritedbytesLoaded : Number
MultiLoaderItem
 InheritedbytesTotal : Number
MultiLoaderItem
  content : *
[read-only] When the asset is loaded the content is set to the loaded item - this is an UNTYPED String, so suggested use would be:

var snd : String = myMultiLoaderInstance.getContent('my_string') as Sound;
MultiLoaderTextItem
 Inheritedcontext : LoaderContext
The LoaderContext to be used, if necessary
MultiLoaderItem
  dataFormat : String = "text"
Controls whether the downloaded data is received as text (URLLoaderDataFormat.TEXT), raw binary data (URLLoaderDataFormat.BINARY), or URL-encoded variables (URLLoaderDataFormat.VARIABLES).
MultiLoaderTextItem
 InheritedelapsedTime : uint
MultiLoaderItem
 InheritedendTime : uint
MultiLoaderItem
 InheritederrorMessage : String
In the event of an error, this is set to the error message
MultiLoaderItem
 InheritedhasFailed : Boolean
MultiLoaderItem
 Inheritedheaders : Array
The array of headers to be sent with the request
MultiLoaderItem
 InheritedhostName : String
MultiLoaderItem
 Inheritedindex : uint
MultiLoaderItem
 InheritedisLoaded : Boolean
MultiLoaderItem
 InheritedisLoading : Boolean
MultiLoaderItem
 Inheritedkey : *
The key used to reference the item.
MultiLoaderItem
 InheritedoriginalPath : String
This is set to the original path, for use if preventCaching is being used as well as a key, so that the original path may still be used to return the item
MultiLoaderItem
 Inheritedparams : Object
The params object is for saving associated parameters into the loader item when you first create it, so that you may retrieve them later, so you don't need to reference the creation source again once it has loaded, eg

var item : MultiLoaderItem = ml.add(imageXML.source, {key: 'img_1'); item.params = {width: imageXML.width, height: imageXML.height}; ml.start(); ...
MultiLoaderItem
 Inheritedpath : String
The path to the resource - may be relative or absolute
MultiLoaderItem
 InheritedpercentLoaded : Number
MultiLoaderItem
 InheritedpreventCaching : Boolean
Whether this item should enforce a fresh load (true) or if it tries to load a cached version.
MultiLoaderItem
 Inheritedpriority : int
The priority of this item - set to 0 by default
MultiLoaderItem
 Inheritedretries : uint
How many times the loader should attempt to load the item after a failure.
MultiLoaderItem
 InheritedstartTime : uint
MultiLoaderItem
 Inheritedtype : String
The type of asset to load.
MultiLoaderItem
 InheritedurlRequest : URLRequest
The URLRequest created for the loading request if necessary
MultiLoaderItem
 Inheritedweight : uint = 1
The loading weight to be used for analysing the loader's progress
MultiLoaderItem
Protected Properties
 PropertyDefined by
  loader : URLLoader
MultiLoaderTextItem
 InheritednameToString : String
MultiLoaderItem
Public Methods
 MethodDefined by
  
MultiLoaderTextItem(path:String, type:String, props:Object = null, params:Object = null)
Creates a new MultiLoaderTextItem object, and prepares it for loading

When loaded, the content of this is set to the loaded String object
MultiLoaderTextItem
  
dispose():void
Disposes of this item
MultiLoaderTextItem
 Inherited
init():void
Called when the item has been added to the loader
MultiLoaderItem
  
load():void
Starts the item loading
MultiLoaderTextItem
 Inherited
onStarted():void
MultiLoaderItem
  
stopLoad():void
Stops the item from loading
MultiLoaderTextItem
Protected Methods
 MethodDefined by
 Inherited
added(evt:Event):void
AbstractDisplay
 Inherited
addEvent(item:EventDispatcher, type:String, listener:Function, weakReference:Boolean = true, priority:int = 0):void
AbstractDisplay
 Inherited
addListeners(item:EventDispatcher):void
MultiLoaderItem
  
completeHandler(evt:Event = null):void
MultiLoaderTextItem
 Inherited
httpStatusHandler(event:HTTPStatusEvent):void
MultiLoaderItem
 Inherited
ioErrorHandler(event:IOErrorEvent):void
MultiLoaderItem
 Inherited
loadingFailed(error:String):void
MultiLoaderItem
 Inherited
openHandler(event:Event):void
MultiLoaderItem
 Inherited
progressHandler(event:ProgressEvent):void
MultiLoaderItem
 Inherited
removed(evt:Event):void
AbstractDisplay
 Inherited
removeEvent(item:EventDispatcher, type:String, listener:Function):void
AbstractDisplay
 Inherited
removeIfExists(child:DisplayObject, container:DisplayObjectContainer):void
AbstractDisplay
 Inherited
removeListeners(item:EventDispatcher):void
MultiLoaderItem
 Inherited
resize(evt:Event = null):void
AbstractDisplay
 Inherited
securityErrorHandler(event:SecurityErrorEvent):void
MultiLoaderItem
Property detail
contentproperty
content:*  [read-only]

When the asset is loaded the content is set to the loaded item - this is an UNTYPED String, so suggested use would be:

var snd : String = myMultiLoaderInstance.getContent('my_string') as Sound;

Implementation
    public function get content():*
dataFormatproperty 
public var dataFormat:String = "text"

Controls whether the downloaded data is received as text (URLLoaderDataFormat.TEXT), raw binary data (URLLoaderDataFormat.BINARY), or URL-encoded variables (URLLoaderDataFormat.VARIABLES).

If the value of the dataFormat property is URLLoaderDataFormat.TEXT, the received data is a string containing the text of the loaded file.

If the value of the dataFormat property is URLLoaderDataFormat.BINARY, the received data is a ByteArray object containing the raw binary data.

If the value of the dataFormat property is URLLoaderDataFormat.VARIABLES, the received data is a URLVariables object containing the URL-encoded variables.

The default value is URLLoaderDataFormat.TEXT.

See also

loaderproperty 
protected var loader:URLLoader
Constructor detail
MultiLoaderTextItem()constructor
public function MultiLoaderTextItem(path:String, type:String, props:Object = null, params:Object = null)

Creates a new MultiLoaderTextItem object, and prepares it for loading

When loaded, the content of this is set to the loaded String object

Parameters
path:String
 
type:String
 
props:Object (default = null)
 
params:Object (default = null)
Method detail
completeHandler()method
protected override function completeHandler(evt:Event = null):voidParameters
evt:Event (default = null)
dispose()method 
public override function dispose():void

Disposes of this item

load()method 
public override function load():void

Starts the item loading

stopLoad()method 
public override function stopLoad():void

Stops the item from loading