| Package | org.springextensions.actionscript.module |
| SVN browsing | LoadModuleOperation.as |
| Fisheye | LoadModuleOperation.as |
| Class | public class LoadModuleOperation |
| Inheritance | LoadModuleOperation AbstractProgressOperation AbstractOperation flash.events.EventDispatcher |
LoadModuleOperation completes the
IModuleInfo instance created by the ModuleManager.getModule() method is returned as the result.
| Property | Defined by | ||
|---|---|---|---|
| moduleInfo : IModuleInfo
The
IModuleInfo instance that is used to listen for ModuleEvent.READY, ModuleEvent.ERROR
and ModuleEvent.PROGRESS events. | LoadModuleOperation | ||
| Method | Defined by | ||
|---|---|---|---|
|
LoadModuleOperation(moduleURL:String, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)
Creates a new
LoadModuleOperation instance. | LoadModuleOperation | ||
![]() |
addCompleteListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
addErrorListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
addProgressListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
addTimeoutListener(listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Convenience method for adding a listener to the OperationEvent.TIMEOUT event.
| AbstractOperation | |
![]() |
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a
OperationEvent.COMPLETE event. | AbstractOperation | |
![]() |
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a
OperationEvent.ERROR event. | AbstractOperation | |
![]() |
dispatchTimeoutEvent():Boolean
Convenience method for dispatching a
OperationEvent.TIMEOUT event. | AbstractOperation | |
![]() |
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
| AbstractOperation | |
![]() |
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
| AbstractOperation | |
![]() |
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
| AbstractProgressOperation | |
![]() |
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
| AbstractOperation | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
dispatchProgressEvent():void
Convenience method for dispatching a
OperationEvent.PROGRESS event. | AbstractProgressOperation | |
|
errorHandler(event:ModuleEvent):void
Handles the
ModuleEvent.ERROR event. | LoadModuleOperation | ||
|
init(moduleURL:String, applicationDomain:ApplicationDomain, securityDomain:SecurityDomain):void
Creates a
IModuleInfo instance by invoking ModuleManager.getModule() and adds appropriate event handlers. | LoadModuleOperation | ||
|
progressHandler(event:ModuleEvent):void
Handles the
ModuleEvent.PROGRESS event. | LoadModuleOperation | ||
|
readyHandler(event:ModuleEvent):void
Handles the
ModuleEvent.READY event. | LoadModuleOperation | ||
|
removeEventListeners():void
Removes the
ModuleEvent.READY, ModuleEvent.ERROR
and ModuleEvent.PROGRESS event listeners. | LoadModuleOperation | ||
![]() |
startTimeout():void
| AbstractOperation | |
| moduleInfo | property |
protected var moduleInfo:IModuleInfo
The IModuleInfo instance that is used to listen for ModuleEvent.READY, ModuleEvent.ERROR
and ModuleEvent.PROGRESS events.
| LoadModuleOperation | () | constructor |
public function LoadModuleOperation(moduleURL:String, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)
Creates a new LoadModuleOperation instance.
moduleURL:String — The specified URL for the Flex module.
|
|
applicationDomain:ApplicationDomain (default = null) — An optional ApplicationDomain for the loaded Flex module.
|
|
securityDomain:SecurityDomain (default = null) — An optional SecurityDomain for the loaded Flex module.
|
| errorHandler | () | method |
protected function errorHandler(event:ModuleEvent):void
Handles the ModuleEvent.ERROR event.
event:ModuleEvent |
| init | () | method |
protected function init(moduleURL:String, applicationDomain:ApplicationDomain, securityDomain:SecurityDomain):void
Creates a IModuleInfo instance by invoking ModuleManager.getModule() and adds appropriate event handlers.
moduleURL:String |
|
applicationDomain:ApplicationDomain |
|
securityDomain:SecurityDomain |
| progressHandler | () | method |
protected function progressHandler(event:ModuleEvent):void
Handles the ModuleEvent.PROGRESS event.
event:ModuleEvent |
| readyHandler | () | method |
protected function readyHandler(event:ModuleEvent):void
Handles the ModuleEvent.READY event.
event:ModuleEvent |
| removeEventListeners | () | method |
protected function removeEventListeners():void
Removes the ModuleEvent.READY, ModuleEvent.ERROR
and ModuleEvent.PROGRESS event listeners.