| Package | com.bourre.ioc.context |
| Class | public class ContextLoader |
| Inheritance | ContextLoader XMLLoader FileLoader AbstractLoader |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
XMLLoader system.
| Method | Defined by | ||
|---|---|---|---|
![]() |
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener
for this command events.
| AbstractLoader | |
![]() |
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds an event listener for the specified event type.
| AbstractLoader | |
![]() |
addListener(listener:LoaderListener):Boolean
Adds the passed-in listener as listener for all events dispatched
by this event broadcaster.
| AbstractLoader | |
![]() |
execute(e:Event = null):void
Execute the request according to the current command data.
| AbstractLoader | |
![]() |
fireCommandEndEvent():void
Fires the
onCommandEnd event to the listeners of this command. | AbstractLoader | |
![]() |
fireOnLoadErrorEvent(message:String = ""):void
Dispatches event when an error occur.
| AbstractLoader | |
![]() |
fireOnLoadInitEvent():void
Dispatches event when the loading is finished.
| AbstractLoader | |
![]() |
fireOnLoadProgressEvent():void
Dispatches event during loading progression.
| AbstractLoader | |
![]() |
fireOnLoadStartEvent():void
Dispatches event when the loading starts.
| AbstractLoader | |
![]() |
fireOnLoadTimeOut():void
| AbstractLoader | |
![]() |
getBytesLoaded():uint
Returns the number of bytes loaded.
| AbstractLoader | |
![]() |
getBytesTotal():uint
Returns the total number of bytes to load.
| AbstractLoader | |
![]() |
getContent():Object
Returns loaded content.
| AbstractLoader | |
|
getContext():XML
Creates instance.
| ContextLoader | ||
![]() |
getName():String
Returns the loader identifier.
| AbstractLoader | |
![]() |
getPerCent():Number
Returns a percentage of bytes loaded and total bytes to load.
| AbstractLoader | |
![]() |
Returns loading strategy used by the loader.
| AbstractLoader | |
![]() |
getTimeOut():Number
Returns the loading timeout limit
| AbstractLoader | |
![]() |
getURL():URLRequest
Returns the URL used by this loader.
| AbstractLoader | |
![]() |
getXML():XML
Returns xml content.
| XMLLoader | |
![]() |
isAntiCache():Boolean
Returns
true if 'anticache' system is on. | AbstractLoader | |
![]() |
isLoaded():Boolean
Returns
true if all bytes are loaded. | AbstractLoader | |
![]() |
isRunning():Boolean
Returns
true if this object is running. | AbstractLoader | |
![]() |
load(url:URLRequest = null, context:LoaderContext = null):void
Loads content.
| AbstractLoader | |
![]() |
prefixURL(sURL:String):void
Adds prefix to URL passed to the loader instance.
| AbstractLoader | |
![]() |
release():void
Releases instance and all registered listeners.
| AbstractLoader | |
![]() |
removeASyncCommandListener(listener:ASyncCommandListener):Boolean
Removes the passed-in command listener object as listener
for this command events.
| AbstractLoader | |
![]() |
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the specified event.
| AbstractLoader | |
![]() |
removeListener(listener:LoaderListener):Boolean
Removes the passed-in listener object from this event
broadcaster.
| AbstractLoader | |
![]() |
run():void
Starts the asynchronous process of this runnable object.
| AbstractLoader | |
![]() |
setAntiCache(b:Boolean):void
Sets the 'anticache' system to
true to add timestamp value
to the loaded URL. | AbstractLoader | |
![]() |
setContent(content:Object):void
Uses to replace this loader content.
| AbstractLoader | |
![]() |
setDataFormat(dataFormat:String):void
Sets how the downloaded data is received.
| FileLoader | |
![]() |
setName(sName:String):void
Sets the loader identifier.
| AbstractLoader | |
![]() |
setTimeOut(n:Number):void
Sets a loading timeout limit.
| AbstractLoader | |
![]() |
setURL(url:URLRequest):void
Defined from which the URL will be loaded.
| AbstractLoader | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
fireEvent(e:Event):void
Dispatched passed-in event to all registered listeners.
| AbstractLoader | |
![]() |
fireEventType(type:String, errorMessage:String = ""):void
Dispatches event using passed-in type and optional error message.
| AbstractLoader | |
|
getLoaderEvent(type:String, errorMessage:String = ""):LoaderEvent
Creates and returns concrete Loader event for this context loader.
| ContextLoader | ||
![]() |
onInitialize():void
| AbstractLoader | |
![]() |
setListenerType(type:Class):void
Defines the type of listeners this event broadcaster support.
| AbstractLoader | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when an error occurs during context file loading. | ContextLoader | |||
![]() | Dispatched when an error occurs during loading. | XMLLoader | ||
![]() | Dispatched when an error occurs during loading. | FileLoader | ||
![]() | Dispatched when an error occurs during loading. | AbstractLoader | ||
| DDispatched when context file loading is finished. | ContextLoader | |||
![]() | Dispatched when loading is finished. | XMLLoader | ||
![]() | Dispatched when loading is finished. | FileLoader | ||
![]() | Dispatched when loading is finished. | AbstractLoader | ||
| Dispatched during context file loading progression. | ContextLoader | |||
![]() | Dispatched during loading progression. | XMLLoader | ||
![]() | Dispatched during loading progression. | FileLoader | ||
![]() | Dispatched during loading progression. | AbstractLoader | ||
| Dispatched when context file starts loading. | ContextLoader | |||
![]() | Dispatched when loader starts loading. | XMLLoader | ||
![]() | Dispatched when loader starts loading. | FileLoader | ||
![]() | Dispatched when loader starts loading. | AbstractLoader | ||
| Dispatched when a timeout occurs during context file loading. | ContextLoader | |||
![]() | Dispatched when a timeout occurs during loading. | XMLLoader | ||
![]() | Dispatched when a timeout occurs during loading. | FileLoader | ||
![]() | Dispatched when a timeout occurs during loading. | AbstractLoader | ||
| getContext | () | method |
public function getContext():XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates instance.
ReturnsXML |
| getLoaderEvent | () | method |
protected override function getLoaderEvent(type:String, errorMessage:String = ""):LoaderEvent
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates and returns concrete Loader event for this context loader.
Parameterstype:String |
|
errorMessage:String (default = "") |
LoaderEvent —
A ContextLoaderEvent event
|
See also
| onLoadError | event |
com.bourre.ioc.context.ContextLoaderEvent
com.bourre.ioc.context.ContextLoaderEvent.onLoadErrorEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when an error occurs during context file loading.
Defines the value of the type property of the event
object for a onLoadError event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getContextLoader()
| The loader object |
getName()
| The loader identifier |
| onLoadInit | event |
com.bourre.ioc.context.ContextLoaderEvent
com.bourre.ioc.context.ContextLoaderEvent.onLoadInitEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
DDispatched when context file loading is finished.
Defines the value of the type property of the event
object for a onLoadInit event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getContextLoader()
| The loader object |
getName()
| The loader identifier |
getContext()
| The loader identifier |
| onLoadProgress | event |
com.bourre.ioc.context.ContextLoaderEvent
com.bourre.ioc.context.ContextLoaderEvent.onLoadProgressEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched during context file loading progression.
Defines the value of the type property of the event
object for a onLoadProgress event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getContextLoader()
| The loader object |
getName()
| The loader identifier |
| onLoadStart | event |
com.bourre.ioc.context.ContextLoaderEvent
com.bourre.ioc.context.ContextLoaderEvent.onLoadStartEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when context file starts loading.
Defines the value of the type property of the event
object for a onLoadStart event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getContextLoader()
| The loader object |
getName()
| The loader identifier |
| onLoadTimeOut | event |
com.bourre.ioc.context.ContextLoaderEvent
com.bourre.ioc.context.ContextLoaderEvent.onLoadTimeOutEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when a timeout occurs during context file loading.
Defines the value of the type property of the event
object for a onLoadTimeOut event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getContextLoader()
| The loader object |
getName()
| The loader identifier |