Packagesekati.load
Classpublic class ByteArrayLoader
InheritanceByteArrayLoader Inheritance AbstractLoader Inheritance flash.events.EventDispatcher
ImplementsILoader

ByteArrayLoader provides a standard API loader for loading a files binary ByteArray content.


Example
  var loader : ByteArrayLoader = new ByteArrayLoader( "http://localhost/path/to/my.bin" );
  loader.addEventListener( Event.INIT, readBytes );
  loader.load( );
  
  private function readBytes(e : Event) : void {
    loader.removeEventListener( Event.INIT, readBytes );
    trace( "ByteArray contents: " + loader.content );
  }
  



Public Properties
 PropertyDefined by
 InheritedbytesLoaded : uint
The loader bytes loaded.
AbstractLoader
 InheritedbytesTotal : uint
The loader bytes total.
AbstractLoader
  content : ByteArray
[read-only] The strictly-typed binary ByteArray loader content.
ByteArrayLoader
 Inheritedcontext : LoaderContext
Returns LoaderContext (for Loader types only).
AbstractLoader
 InheriteddataFormat : String
Returns URLLoaderDataFormat (for URLLoader types only).
AbstractLoader
 Inheritedloading : Boolean
The loading status of the loader; if true the loader is loading, if false the loader has not started yet.
AbstractLoader
 Inheritedpercent : Number
The loader percentile.
AbstractLoader
 InheritedrawContent : *
The loosely-typed AbstractLoader content.
AbstractLoader
 Inheritedready : Boolean
The ready status of the loader content; if true the content is loaded, if false the content is not loaded.
AbstractLoader
 Inheritedrequest : URLRequest
The loader URLRequest.
AbstractLoader
 InheritedsoundContext : SoundLoaderContext
Returns SoundLoaderContext (for Sound types only).
AbstractLoader
 Inheritedurl : String
The loader url.
AbstractLoader
Protected Properties
 PropertyDefined by
 Inheritedloader : *
AbstractLoader
Public Methods
 MethodDefined by
  
ByteArrayLoader(url:String)
ByteArrayLoader Constructor
ByteArrayLoader
 Inherited
close():void
Stop the loading process.
AbstractLoader
 Inherited
destroy():void
Cleanup the AbstractLoader.
AbstractLoader
 Inherited
dispatchEvent(e:Event):Boolean
Optimized dispatchEvent only dispatches when there are listeners.
AbstractLoader
 Inherited
load():void
Start the loading process.
AbstractLoader
Protected Methods
 MethodDefined by
 Inherited
closeHandler(e:Event):void
Event.CLOSE handler.
AbstractLoader
 Inherited
configureListeners(isAdd:Boolean = true):void
Configure the adding & removing of loader listeners.
AbstractLoader
 Inherited
genericErrorHandler(e:ErrorEvent):void
Generic processor for ErrorEvent's.
AbstractLoader
  
initHandler(e:Event):void
Event.INIT handler.
ByteArrayLoader
 Inherited
ioErrorHandler(e:IOErrorEvent):void
IOErrorEvent.IO_ERROR handler.
AbstractLoader
 Inherited
openHandler(e:Event):void
Event.OPEN handler.
AbstractLoader
 Inherited
progressHandler(e:ProgressEvent):void
ProgressEvent.PROGRESS handler.
AbstractLoader
 Inherited
securityErrorHandler(e:SecurityErrorEvent):void
SecurityErrorEvent.SECURITY_ERROR handler.
AbstractLoader
Property detail
contentproperty
content:ByteArray  [read-only]

The strictly-typed binary ByteArray loader content.

Implementation
    public function get content():ByteArray
Constructor detail
ByteArrayLoader()constructor
public function ByteArrayLoader(url:String)

ByteArrayLoader Constructor

Parameters
url:String — of the Binary file.
Method detail
initHandler()method
protected override function initHandler(e:Event):void

Event.INIT handler.

Parameters
e:Event