Package | sekati.load |
Class | public class ByteArrayLoader |
Inheritance | ByteArrayLoader AbstractLoader flash.events.EventDispatcher |
Implements | ILoader |
ByteArray
content.
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 ); }
Property | Defined by | ||
---|---|---|---|
bytesLoaded : uint
The loader bytes loaded.
| AbstractLoader | ||
bytesTotal : uint
The loader bytes total.
| AbstractLoader | ||
content : ByteArray [read-only]
The strictly-typed binary
ByteArray loader content. | ByteArrayLoader | ||
context : LoaderContext
Returns
LoaderContext (for Loader types only). | AbstractLoader | ||
dataFormat : String
Returns
URLLoaderDataFormat (for URLLoader types only). | AbstractLoader | ||
loading : Boolean
The loading status of the loader; if
true the loader is loading, if false the loader has not started yet. | AbstractLoader | ||
percent : Number
The loader percentile.
| AbstractLoader | ||
rawContent : *
The loosely-typed
AbstractLoader content. | AbstractLoader | ||
ready : Boolean
The ready status of the loader content; if
true the content is loaded, if false the content is not loaded. | AbstractLoader | ||
request : URLRequest
The loader
URLRequest . | AbstractLoader | ||
soundContext : SoundLoaderContext
Returns
SoundLoaderContext (for Sound types only). | AbstractLoader | ||
url : String
The loader url.
| AbstractLoader |
Method | Defined by | ||
---|---|---|---|
ByteArrayLoader(url:String)
ByteArrayLoader Constructor
| ByteArrayLoader | ||
close():void
Stop the loading process.
| AbstractLoader | ||
destroy():void
Cleanup the
AbstractLoader . | AbstractLoader | ||
dispatchEvent(e:Event):Boolean
Optimized
dispatchEvent only dispatches when there are listeners. | AbstractLoader | ||
load():void
Start the loading process.
| AbstractLoader |
Method | Defined by | ||
---|---|---|---|
closeHandler(e:Event):void
Event.CLOSE handler. | AbstractLoader | ||
configureListeners(isAdd:Boolean = true):void
Configure the adding & removing of loader listeners.
| AbstractLoader | ||
genericErrorHandler(e:ErrorEvent):void
Generic processor for
ErrorEvent 's. | AbstractLoader | ||
initHandler(e:Event):void
Event.INIT handler. | ByteArrayLoader | ||
ioErrorHandler(e:IOErrorEvent):void
IOErrorEvent.IO_ERROR handler. | AbstractLoader | ||
openHandler(e:Event):void
Event.OPEN handler. | AbstractLoader | ||
progressHandler(e:ProgressEvent):void
ProgressEvent.PROGRESS handler. | AbstractLoader | ||
securityErrorHandler(e:SecurityErrorEvent):void
SecurityErrorEvent.SECURITY_ERROR handler. | AbstractLoader |
content | property |
content:ByteArray
[read-only]
The strictly-typed binary ByteArray
loader content.
public function get content():ByteArray
ByteArrayLoader | () | constructor |
public function ByteArrayLoader(url:String)
ByteArrayLoader Constructor
Parametersurl:String — of the Binary file.
|
initHandler | () | method |
protected override function initHandler(e:Event):void
Event.INIT
handler.
e:Event |