Package | sekati.load |
Class | public class ImageLoader |
Inheritance | ImageLoader AbstractLoader flash.events.EventDispatcher |
Implements | ILoader |
Bitmap
content.
var loader : ImageLoader = new ImageLoader( "http://localhost/path/to/image.png" ); loader.addEventListener( Event.INIT, addGraphic ); loader.load( ); private function addGraphic(e : Event) : void { loader.removeEventListener( Event.INIT, addGraphic ); addChild( loader.content ); }
Property | Defined by | ||
---|---|---|---|
bytesLoaded : uint
The loader bytes loaded.
| AbstractLoader | ||
bytesTotal : uint
The loader bytes total.
| AbstractLoader | ||
content : Bitmap [read-only]
The strictly-typed
Bitmap loader content. | ImageLoader | ||
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 | ||
---|---|---|---|
ImageLoader(url:String)
ImageLoader Constructor
| ImageLoader | ||
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. | ImageLoader | ||
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:Bitmap
[read-only]
The strictly-typed Bitmap
loader content.
public function get content():Bitmap
ImageLoader | () | constructor |
public function ImageLoader(url:String)
ImageLoader Constructor
Parametersurl:String — of the graphic file.
|
initHandler | () | method |
protected override function initHandler(e:Event):void
Event.INIT
handler.
e:Event |