Packagecom.bourre.ioc.context
Classpublic class ContextLoader
InheritanceContextLoader Inheritance XMLLoader Inheritance FileLoader Inheritance AbstractLoader

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Context loader implementation based on the XMLLoader system.



Protected Properties
 PropertyDefined by
 Inherited_sPrefixURL : String
AbstractLoader
 Inherited_sURL : String
AbstractLoader
Public Methods
 MethodDefined by
 Inherited
addASyncCommandListener(listener:ASyncCommandListener, ... rest):Boolean
Adds the passed-in command listener object as listener for this command events.
AbstractLoader
 Inherited
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds an event listener for the specified event type.
AbstractLoader
 Inherited
addListener(listener:LoaderListener):Boolean
Adds the passed-in listener as listener for all events dispatched by this event broadcaster.
AbstractLoader
 Inherited
execute(e:Event = null):void
Execute the request according to the current command data.
AbstractLoader
 Inherited
Fires the onCommandEnd event to the listeners of this command.
AbstractLoader
 Inherited
fireOnLoadErrorEvent(message:String = ""):void
Dispatches event when an error occur.
AbstractLoader
 Inherited
Dispatches event when the loading is finished.
AbstractLoader
 Inherited
Dispatches event during loading progression.
AbstractLoader
 Inherited
Dispatches event when the loading starts.
AbstractLoader
 Inherited
AbstractLoader
 Inherited
Returns the number of bytes loaded.
AbstractLoader
 Inherited
Returns the total number of bytes to load.
AbstractLoader
 Inherited
getContent():Object
Returns loaded content.
AbstractLoader
  
getContext():XML
Creates instance.
ContextLoader
 Inherited
getName():String
Returns the loader identifier.
AbstractLoader
 Inherited
getPerCent():Number
Returns a percentage of bytes loaded and total bytes to load.
AbstractLoader
 Inherited
Returns loading strategy used by the loader.
AbstractLoader
 Inherited
getTimeOut():Number
Returns the loading timeout limit
AbstractLoader
 Inherited
getURL():URLRequest
Returns the URL used by this loader.
AbstractLoader
 Inherited
getXML():XML
Returns xml content.
XMLLoader
 Inherited
isAntiCache():Boolean
Returns true if 'anticache' system is on.
AbstractLoader
 Inherited
isLoaded():Boolean
Returns true if all bytes are loaded.
AbstractLoader
 Inherited
isRunning():Boolean
Returns true if this object is running.
AbstractLoader
 Inherited
load(url:URLRequest = null, context:LoaderContext = null):void
Loads content.
AbstractLoader
 Inherited
prefixURL(sURL:String):void
Adds prefix to URL passed to the loader instance.
AbstractLoader
 Inherited
release():void
Releases instance and all registered listeners.
AbstractLoader
 Inherited
Removes the passed-in command listener object as listener for this command events.
AbstractLoader
 Inherited
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the specified event.
AbstractLoader
 Inherited
removeListener(listener:LoaderListener):Boolean
Removes the passed-in listener object from this event broadcaster.
AbstractLoader
 Inherited
run():void
Starts the asynchronous process of this runnable object.
AbstractLoader
 Inherited
setAntiCache(b:Boolean):void
Sets the 'anticache' system to true to add timestamp value to the loaded URL.
AbstractLoader
 Inherited
setContent(content:Object):void
Uses to replace this loader content.
AbstractLoader
 Inherited
setDataFormat(dataFormat:String):void
Sets how the downloaded data is received.
FileLoader
 Inherited
setName(sName:String):void
Sets the loader identifier.
AbstractLoader
 Inherited
setTimeOut(n:Number):void
Sets a loading timeout limit.
AbstractLoader
 Inherited
setURL(url:URLRequest):void
Defined from which the URL will be loaded.
AbstractLoader
Protected Methods
 MethodDefined by
 Inherited
fireEvent(e:Event):void
Dispatched passed-in event to all registered listeners.
AbstractLoader
 Inherited
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
 Inherited
onInitialize():void
AbstractLoader
 Inherited
setListenerType(type:Class):void
Defines the type of listeners this event broadcaster support.
AbstractLoader
Events
 EventSummaryDefined by
   Dispatched when an error occurs during context file loading.ContextLoader
 Inherited Dispatched when an error occurs during loading.XMLLoader
 Inherited Dispatched when an error occurs during loading.FileLoader
 Inherited Dispatched when an error occurs during loading.AbstractLoader
   DDispatched when context file loading is finished.ContextLoader
 Inherited Dispatched when loading is finished.XMLLoader
 Inherited Dispatched when loading is finished.FileLoader
 Inherited Dispatched when loading is finished.AbstractLoader
   Dispatched during context file loading progression.ContextLoader
 Inherited Dispatched during loading progression.XMLLoader
 Inherited Dispatched during loading progression.FileLoader
 Inherited Dispatched during loading progression.AbstractLoader
   Dispatched when context file starts loading.ContextLoader
 Inherited Dispatched when loader starts loading.XMLLoader
 Inherited Dispatched when loader starts loading.FileLoader
 Inherited Dispatched when loader starts loading.AbstractLoader
   Dispatched when a timeout occurs during context file loading.ContextLoader
 Inherited Dispatched when a timeout occurs during loading.XMLLoader
 Inherited Dispatched when a timeout occurs during loading.FileLoader
 Inherited Dispatched when a timeout occurs during loading.AbstractLoader
Public Constants
 ConstantDefined by
 InheritedBINARY : String = "binary"
[static] Specifies that downloaded data is received as raw binary data.
FileLoader
 InheritedTEXT : String = "text"
[static] Specifies that downloaded data is received as text.
FileLoader
 InheritedVARIABLES : String = "variables"
[static] Specifies that downloaded data is received as URL-encoded variables.
FileLoader
Method detail
getContext()method
public function getContext():XML

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates instance.

Returns
XML
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.

Parameters
type:String
 
errorMessage:String (default = "")

Returns
LoaderEvent — A ContextLoaderEvent event

See also

Event detail
onLoadErrorevent 
Event object type: com.bourre.ioc.context.ContextLoaderEvent
ContextLoaderEvent.type property = 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:

PropertyValue
type Dispatched event type
MethodValue
getContextLoader() The loader object
getName() The loader identifier
onLoadInitevent  
Event object type: com.bourre.ioc.context.ContextLoaderEvent
ContextLoaderEvent.type property = 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:

PropertyValue
type Dispatched event type
MethodValue
getContextLoader() The loader object
getName() The loader identifier
getContext() The loader identifier
onLoadProgressevent  
Event object type: com.bourre.ioc.context.ContextLoaderEvent
ContextLoaderEvent.type property = 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:

PropertyValue
type Dispatched event type
MethodValue
getContextLoader() The loader object
getName() The loader identifier
onLoadStartevent  
Event object type: com.bourre.ioc.context.ContextLoaderEvent
ContextLoaderEvent.type property = 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:

PropertyValue
type Dispatched event type
MethodValue
getContextLoader() The loader object
getName() The loader identifier
onLoadTimeOutevent  
Event object type: com.bourre.ioc.context.ContextLoaderEvent
ContextLoaderEvent.type property = 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:

PropertyValue
type Dispatched event type
MethodValue
getContextLoader() The loader object
getName() The loader identifier