| Package | com.bourre.ioc.load |
| Class | public class ApplicationLoader |
| Inheritance | ApplicationLoader AbstractLoader |
| Implements | DisplayObjectBuilderListener, LoaderListener |
| Subclasses | RuntimeContextLoader |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
| Property | Defined by | ||
|---|---|---|---|
| DEBUG_LOADING_ENABLED : Boolean = false [static] Enabled or not the debugging feature during application loading.
| ApplicationLoader | ||
| DEFAULT_CONFIG_PATH : String = "" [static] Default path for applicationContext file.
| ApplicationLoader | ||
| DEFAULT_CONTEXT_FILE : String = "" [static] Default URL for applicationContext file.
| ApplicationLoader | ||
| DEFAULT_DLL_PATH : String = "" [static] Default path for dll files.
| ApplicationLoader | ||
| DEFAULT_GFX_PATH : String = "" [static] Default path for gfx ( display tree ) files.
| ApplicationLoader | ||
| DEFAULT_RSC_PATH : String = "" [static] Default path for resources files.
| ApplicationLoader | ||
| RELATIVE_PATH : String = "#//" [static]
Defines wildcard to search to identify a forced relative path.
| ApplicationLoader | ||
| Method | Defined by | ||
|---|---|---|---|
|
ApplicationLoader(rootTarget:DisplayObjectContainer, autoExecute:Boolean = false, url:URLRequest = null)
Creates loader instance.
| ApplicationLoader | ||
|
addApplicationLoaderListener(listener:ApplicationLoaderListener):Boolean
Adds the passed-in
listener as listener for all
events dispatched by loader. | ApplicationLoader | ||
![]() |
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 | |
|
addProcessingMethod(processingMethod:Function, ... args):void
Adds new preprocessing method.
| ApplicationLoader | ||
|
addProcessor(processor:ContextProcessor):void
Adds new pre processing processor.
| ApplicationLoader | ||
![]() |
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 | |
|
fireOnApplicationInit():void
Broadcasts
ApplicationLoaderEvent.onApplicationInitEVENT
event type when application is ready. | ApplicationLoader | ||
|
fireOnApplicationParsed():void
Broadcasts
ApplicationLoaderEvent.onApplicationParsedEVENT
event type when xml is parsed. | ApplicationLoader | ||
|
fireOnApplicationStart():void
Broadcasts
ApplicationLoaderEvent.onApplicationStartEVENT
event type when xml is parsed. | ApplicationLoader | ||
|
fireOnApplicationState(state:String):void
Broadcasts
ApplicationLoaderEvent.onApplicationStateEVENT when IOC engine
processing change his state ( DLL, Resources, GFX, etc. | ApplicationLoader | ||
|
fireOnChannelsAssigned():void
Broadcasts
ApplicationLoaderEvent.onApplicationChannelsAssignedEVENT
event type when all plugin channels are initialized. | ApplicationLoader | ||
![]() |
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 | |
|
fireOnMethodsCalled():void
Broadcasts
ApplicationLoaderEvent.onApplicationMethodsCalledEVENT
event type when all method-call are executed. | ApplicationLoader | ||
|
fireOnObjectsBuilt():void
Broadcasts
ApplicationLoaderEvent.onApplicationObjectsBuiltEVENT
event type when all elements in xml are built. | ApplicationLoader | ||
|
Returns
ApplicationAssembler used in by this loader. | ApplicationLoader | ||
![]() |
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 | |
|
Returns the
DisplayObjectBuilder used by this loader
to load and build all context elements. | ApplicationLoader | ||
![]() |
getName():String
Returns the loader identifier.
| AbstractLoader | |
|
Returns parser collection used by assembler.
| ApplicationLoader | ||
![]() |
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 | |
|
getURLRequest(request:URLRequest, prefix:String = ""):URLRequest
[static]
Returns clean URL address using passed-in base url and optional prefix one.
| ApplicationLoader | ||
![]() |
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
Starts loading.
| ApplicationLoader | ||
|
Triggered when a display object is built.
| ApplicationLoader | ||
|
onDisplayLoaderInit(e:ValueObjectEvent):void
Triggered when a display loader is registred.
| ApplicationLoader | ||
|
All files in xml context are loaded.
| ApplicationLoader | ||
|
Triggered when context files starts processing.
| ApplicationLoader | ||
|
Triggered when a graphic file loading is finished.
| ApplicationLoader | ||
|
Triggered when a graphic file starts loading.
| ApplicationLoader | ||
|
Triggered when a DLL file loading is finished.
| ApplicationLoader | ||
|
Triggered when a DLL file starts loading.
| ApplicationLoader | ||
|
onLoadError(e:LoaderEvent):void
| ApplicationLoader | ||
|
onLoadInit(e:LoaderEvent):void
| ApplicationLoader | ||
|
onLoadProgress(e:LoaderEvent):void
| ApplicationLoader | ||
|
onLoadStart(e:LoaderEvent):void
| ApplicationLoader | ||
|
onLoadTimeOut(e:LoaderEvent):void
| ApplicationLoader | ||
|
onPreprossorComplete(event:BasicEvent):void
Preprocessing is completed.
| ApplicationLoader | ||
|
Triggered when a resource file loading is finished.
| ApplicationLoader | ||
|
Triggered when a resource file starts loading.
| ApplicationLoader | ||
![]() |
prefixURL(sURL:String):void
Adds prefix to URL passed to the loader instance.
| AbstractLoader | |
|
processParsing(xml:*):void
Parses the xml context.
| ApplicationLoader | ||
![]() |
release():void
Releases instance and all registered listeners.
| AbstractLoader | |
|
removeApplicationLoaderListener(listener:ApplicationLoaderListener):Boolean
Removes the passed-in
listener object from loader. | ApplicationLoader | ||
![]() |
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 | |
|
runPreprocessor(xml:*):void
Starts IoC pre processing.
| ApplicationLoader | ||
![]() |
setAntiCache(b:Boolean):void
Sets the 'anticache' system to
true to add timestamp value
to the loaded URL. | AbstractLoader | |
|
setApplicationAssembler(assembler:ApplicationAssembler):void
Sets the
ApplicationAssembler to use by this loader. | ApplicationLoader | ||
![]() |
setContent(content:Object):void
Uses to replace this loader content.
| AbstractLoader | |
|
setDisplayObjectBuilder(displayObjectBuilder:DisplayObjectBuilder):void
Sets the
DisplayObjectBuilder to use by this loader
to load and build all context elements. | ApplicationLoader | ||
![]() |
setName(sName:String):void
Sets the loader identifier.
| AbstractLoader | |
|
setParserCollection(pc:ParserCollection):void
Sets the parsers collection to use in order to build context.
| ApplicationLoader | ||
![]() |
setTimeOut(n:Number):void
Sets a loading timeout limit.
| AbstractLoader | |
![]() |
setURL(url:URLRequest):void
Defined from which the URL will be loaded.
| AbstractLoader | |
|
setVariable(name:String, value:Object):void
Sets new pair name / value for variable replacement when context
file will be laoded.
| ApplicationLoader | ||
| Method | Defined by | ||
|---|---|---|---|
|
_initParserCollection():void
| ApplicationLoader | ||
| ApplicationLoader | |||
| ApplicationLoader | |||
![]() |
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
| ApplicationLoader | ||
|
initContext():void
| ApplicationLoader | ||
|
initQueryURL():void
Retreives Query URL.
| ApplicationLoader | ||
![]() |
onInitialize():void
| AbstractLoader | |
|
preprocess(xml:XML):XML
Do preprocessing actions on xml context before parsing.
| ApplicationLoader | ||
![]() |
setListenerType(type:Class):void
Defines the type of listeners this event broadcaster support.
| AbstractLoader | |
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when all communication channels are assigned. | ApplicationLoader | |||
|
Dispatched when application is ready. IoC engine complete. | ApplicationLoader | |||
| Dispatched when all methods defined in context are called. | ApplicationLoader | |||
| Dispatched when all context objects are built. | ApplicationLoader | |||
| Dispatched when context file is parsed. | ApplicationLoader | |||
| Dispatched when context files loading starts. | ApplicationLoader | |||
Dispatched when IoC engien state change
Possible values for state are :
| ApplicationLoader | |||
| ispatched when an error occurs during context item file loading. | ApplicationLoader | |||
![]() | Dispatched when an error occurs during loading. | AbstractLoader | ||
| Dispatched when a context item file loading is finished | ApplicationLoader | |||
![]() | Dispatched when loading is finished. | AbstractLoader | ||
| Dispatched during context item file loading progression | ApplicationLoader | |||
![]() | Dispatched during loading progression. | AbstractLoader | ||
| Dispatched when a context item file starts loading. | ApplicationLoader | |||
![]() | Dispatched when loader starts loading. | AbstractLoader | ||
| Dispatched when a timeout occurs during context item file loading. | ApplicationLoader | |||
![]() | Dispatched when a timeout occurs during loading. | AbstractLoader | ||
| Constant | Defined by | ||
|---|---|---|---|
| ABSOLUTE_PATH : String = "://" [static]
Defines wildcard to search to identify an absolute path.
| ApplicationLoader | ||
| DEFAULT_URL : URLRequest [static] Default URL Request for applicationContext file.
| ApplicationLoader | ||
| DEBUG_LOADING_ENABLED | property |
public static var DEBUG_LOADING_ENABLED:Boolean = false
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Enabled or not the debugging feature during application loading.
| DEFAULT_CONFIG_PATH | property |
public static var DEFAULT_CONFIG_PATH:String = ""
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default path for applicationContext file.
| DEFAULT_CONTEXT_FILE | property |
public static var DEFAULT_CONTEXT_FILE:String = ""
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default URL for applicationContext file.
| DEFAULT_DLL_PATH | property |
public static var DEFAULT_DLL_PATH:String = ""
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default path for dll files.
| DEFAULT_GFX_PATH | property |
public static var DEFAULT_GFX_PATH:String = ""
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default path for gfx ( display tree ) files.
| DEFAULT_RSC_PATH | property |
public static var DEFAULT_RSC_PATH:String = ""
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default path for resources files.
| RELATIVE_PATH | property |
public static var RELATIVE_PATH:String = "#//"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines wildcard to search to identify a forced relative path.
The default value is #//.
| ApplicationLoader | () | constructor |
public function ApplicationLoader(rootTarget:DisplayObjectContainer, autoExecute:Boolean = false, url:URLRequest = null)
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates loader instance.
ParametersrootTarget:DisplayObjectContainer — Main sprite target for display tree creation.
|
|
autoExecute:Boolean (default = false) — (optional) true to start loading
just after loader instanciation.
|
|
url:URLRequest (default = null) — URL request for 'applicationContext' file
to load.
|
| _initParserCollection | () | method |
protected function _initParserCollection():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
| _onContextLoaderLoadInit | () | method |
protected function _onContextLoaderLoadInit(e:ContextLoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
e:ContextLoaderEvent |
| _onContextParsingEnd | () | method |
protected function _onContextParsingEnd(e:ContextParserEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
e:ContextParserEvent |
| addApplicationLoaderListener | () | method |
public function addApplicationLoaderListener(listener:ApplicationLoaderListener):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds the passed-in listener as listener for all
events dispatched by loader.
listener:ApplicationLoaderListener — ApplicationLoaderListener instance.
|
Boolean |
| addProcessingMethod | () | method |
public function addProcessingMethod(processingMethod:Function, ... args):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds new preprocessing method.
Preprocessing act after xml loading and before context parsing.
Used to transform context data on fly.
processingMethod:Function — Method to call.Method must accept an XML object as first argument and return an XML object when completed. |
|
... args — Additionals parameters to pass to method when
executing.
|
See also
var oLoader : ApplicationLoader = new ApplicationLoader( this, false ); oLoader.addProcessingMethod( ProcessingHelper.changeObjectAttribute, "cross", "visible", "false" ); oLoader.addProcessingMethod( ProcessingHelper.changePropertyValue, "cross", "x", 600 ); oLoader.addProcessingMethod( ProcessingHelper.addResource, "newStyle", "myStyle.css" );
| addProcessor | () | method |
public function addProcessor(processor:ContextProcessor):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds new pre processing processor.
Preprocessing act after xml loading and before context parsing.
Used to transform context data on fly.
processor:ContextProcessor |
var oLoader : ApplicationLoader = new ApplicationLoader( this, false ); oLoader.addProcessor( new LocalisationProcessor() );
| fireOnApplicationInit | () | method |
public function fireOnApplicationInit():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationInitEVENT
event type when application is ready.
| fireOnApplicationParsed | () | method |
public function fireOnApplicationParsed():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationParsedEVENT
event type when xml is parsed.
| fireOnApplicationStart | () | method |
public function fireOnApplicationStart():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationStartEVENT
event type when xml is parsed.
| fireOnApplicationState | () | method |
public function fireOnApplicationState(state:String):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationStateEVENT when IOC engine
processing change his state ( DLL, Resources, GFX, etc. )
state:String |
| fireOnChannelsAssigned | () | method |
public function fireOnChannelsAssigned():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationChannelsAssignedEVENT
event type when all plugin channels are initialized.
| fireOnMethodsCalled | () | method |
public function fireOnMethodsCalled():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationMethodsCalledEVENT
event type when all method-call are executed.
| fireOnObjectsBuilt | () | method |
public function fireOnObjectsBuilt():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Broadcasts ApplicationLoaderEvent.onApplicationObjectsBuiltEVENT
event type when all elements in xml are built.
| getApplicationAssembler | () | method |
public function getApplicationAssembler():ApplicationAssembler
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns ApplicationAssembler used in by this loader.
ApplicationAssembler |
| getDisplayObjectBuilder | () | method |
public function getDisplayObjectBuilder():DisplayObjectBuilder
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the DisplayObjectBuilder used by this loader
to load and build all context elements.
DisplayObjectBuilder |
| getLoaderEvent | () | method |
protected override function getLoaderEvent(type:String, errorMessage:String = ""):LoaderEvent
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
type:String |
|
errorMessage:String (default = "") |
LoaderEvent |
| getParserCollection | () | method |
public function getParserCollection():ParserCollection
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns parser collection used by assembler.
ReturnsParserCollection |
| getURLRequest | () | method |
public static function getURLRequest(request:URLRequest, prefix:String = ""):URLRequest
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns clean URL address using passed-in base url and optional prefix one.
Parametersrequest:URLRequest — Original request defined in xml context
|
|
prefix:String (default = "") — Prefix to insert to build correct url link
|
URLRequest |
| initContext | () | method |
protected function initContext():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
| initQueryURL | () | method |
protected function initQueryURL():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Retreives Query URL.
Uses query URL to overwrite existing Flashvars for exemple.
| load | () | method |
public override function load(url:URLRequest = null, context:LoaderContext = null):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Starts loading.
Parametersurl:URLRequest (default = null) — (optional) URL request for 'applicationContext' file
to load.
|
|
context:LoaderContext (default = null) |
| onBuildDisplayObject | () | method |
public function onBuildDisplayObject(e:DisplayObjectEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a display object is built.
Parameterse:DisplayObjectEvent |
| onDisplayLoaderInit | () | method |
public function onDisplayLoaderInit(e:ValueObjectEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a display loader is registred.
Parameterse:ValueObjectEvent |
| onDisplayObjectBuilderLoadInit | () | method |
public function onDisplayObjectBuilderLoadInit(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
All files in xml context are loaded.
Parameterse:DisplayObjectBuilderEvent |
| onDisplayObjectBuilderLoadStart | () | method |
public function onDisplayObjectBuilderLoadStart(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when context files starts processing.
Parameterse:DisplayObjectBuilderEvent |
| onDisplayObjectLoadInit | () | method |
public function onDisplayObjectLoadInit(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a graphic file loading is finished.
Parameterse:DisplayObjectBuilderEvent |
| onDisplayObjectLoadStart | () | method |
public function onDisplayObjectLoadStart(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a graphic file starts loading.
Parameterse:DisplayObjectBuilderEvent |
| onDLLLoadInit | () | method |
public function onDLLLoadInit(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a DLL file loading is finished.
Parameterse:DisplayObjectBuilderEvent |
| onDLLLoadStart | () | method |
public function onDLLLoadStart(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a DLL file starts loading.
Parameterse:DisplayObjectBuilderEvent |
| onLoadError | () | method |
public function onLoadError(e:LoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
e:LoaderEvent |
| onLoadInit | () | method |
public function onLoadInit(e:LoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
e:LoaderEvent |
| onLoadProgress | () | method |
public function onLoadProgress(e:LoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
e:LoaderEvent |
| onLoadStart | () | method |
public function onLoadStart(e:LoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
e:LoaderEvent |
| onLoadTimeOut | () | method |
public function onLoadTimeOut(e:LoaderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
e:LoaderEvent |
| onPreprossorComplete | () | method |
public function onPreprossorComplete(event:BasicEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Preprocessing is completed.
Starts the IoC parsing.
Parametersevent:BasicEvent — IoC xml context
|
See also
| onRSCLoadInit | () | method |
public function onRSCLoadInit(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a resource file loading is finished.
Parameterse:DisplayObjectBuilderEvent |
| onRSCLoadStart | () | method |
public function onRSCLoadStart(e:DisplayObjectBuilderEvent):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Triggered when a resource file starts loading.
Parameterse:DisplayObjectBuilderEvent |
| preprocess | () | method |
protected function preprocess(xml:XML):XML
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Do preprocessing actions on xml context before parsing.
Parametersxml:XML — Content to process
|
XML |
| processParsing | () | method |
public function processParsing(xml:*):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parses the xml context.
Include files are loaded and preprocessing is done.
Parametersxml:* |
| removeApplicationLoaderListener | () | method |
public function removeApplicationLoaderListener(listener:ApplicationLoaderListener):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Removes the passed-in listener object from loader.
listener:ApplicationLoaderListener — ApplicationLoaderListener instance.
|
Boolean |
| runPreprocessor | () | method |
public function runPreprocessor(xml:*):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Starts IoC pre processing.
Parametersxml:* — IoC xml context
|
See also
| setApplicationAssembler | () | method |
public function setApplicationAssembler(assembler:ApplicationAssembler):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the ApplicationAssembler to use by this loader.
assembler:ApplicationAssembler |
| setDisplayObjectBuilder | () | method |
public function setDisplayObjectBuilder(displayObjectBuilder:DisplayObjectBuilder):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the DisplayObjectBuilder to use by this loader
to load and build all context elements.
displayObjectBuilder:DisplayObjectBuilder |
| setParserCollection | () | method |
public function setParserCollection(pc:ParserCollection):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets the parsers collection to use in order to build context.
Parameterspc:ParserCollection |
| setVariable | () | method |
public function setVariable(name:String, value:Object):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Sets new pair name / value for variable replacement when context file will be laoded.
Parametersname:String — Name of the variable to replace.
|
|
value:Object — New value for this variable.
|
${POSITION_X}
Setting this variable using setVariable() method :
rtLoader.setVariable( "POSITION_X", 200 );
| onApplicationChannelsAssigned | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationChannelsAssignedEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when all communication channels are assigned.
Defines the value of the type property of the event
object for a onApplicationChannelsAssigned event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationInit | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationInitEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when application is ready.
IoC engine complete.
Defines the value of the type property of the event
object for a onApplicationInit event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationMethodsCalled | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationMethodsCalledEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when all methods defined in context are called.
Defines the value of the type property of the event
object for a onApplicationMethodsCalled event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationObjectsBuilt | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationObjectsBuiltEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when all context objects are built.
Defines the value of the type property of the event
object for a onApplicationObjectsBuilt event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationParsed | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationParsedEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when context file is parsed.
Defines the value of the type property of the event
object for a onApplicationParsed event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationStart | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationStartEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when context files loading starts.
Defines the value of the type property of the event
object for a onApplicationStart event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
| onApplicationState | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onApplicationStateEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when IoC engien state change Possible values for state are :
Defines the value of the type property of the event
object for a onApplicationState event.
The properties of the event object have the following values:
| Property | Value |
|---|---|
type |
Dispatched event type |
| Method | Value |
getApplicationLoader()
| The loader object |
getApplicationState()
| The application state |
| onLoadError | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onLoadErrorEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
ispatched when an error occurs during context item 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 |
getApplicationLoader()
| The loader object |
getLoader()
| The current loader object |
getErrorMessage()
| The current error message |
| onLoadInit | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onLoadInitEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when a context item 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 |
getApplicationLoader()
| The loader object |
getLoader()
| The current loader object |
| onLoadProgress | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onLoadProgressEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched during context item 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 |
getApplicationLoader()
| The loader object |
getLoader()
| The current loader object |
| onLoadStart | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onLoadStartEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when a context item file starts loading.
| onLoadTimeOut | event |
com.bourre.ioc.load.ApplicationLoaderEvent
com.bourre.ioc.load.ApplicationLoaderEvent.onLoadTimeOutEVENT
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Dispatched when a timeout occurs during context item 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 |
getApplicationLoader()
| The loader object |
getLoader()
| The current loader object |
| ABSOLUTE_PATH | constant |
public static const ABSOLUTE_PATH:String = "://"
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Defines wildcard to search to identify an absolute path.
The default value is ://.
| DEFAULT_URL | constant |
public static const DEFAULT_URL:URLRequest
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Default URL Request for applicationContext file.