Packageorg.springextensions.actionscript.module
SVN browsingLoadModuleOperation.as
FisheyeLoadModuleOperation.as
Classpublic class LoadModuleOperation
InheritanceLoadModuleOperation Inheritance AbstractProgressOperation Inheritance AbstractOperation Inheritance flash.events.EventDispatcher

Asynchronous operation that loads a Flex module from a specified URL. When the LoadModuleOperation completes the IModuleInfo instance created by the ModuleManager.getModule() method is returned as the result.



Public Properties
 PropertyDefined by
 Inheritederror : *
The error of this operation or null if no error occurred during this operation.
AbstractOperation
 Inheritedprogress : uint
The progress of this operation.
AbstractProgressOperation
 Inheritedresult : *
The result of this operation or null if the operation does not have a result.
AbstractOperation
 Inheritedtimeout : int
The timeout in milliseconds.
AbstractOperation
 Inheritedtotal : uint
The total amount of progress this operation should make before being done.
AbstractProgressOperation
Protected Properties
 PropertyDefined by
  moduleInfo : IModuleInfo
The IModuleInfo instance that is used to listen for ModuleEvent.READY, ModuleEvent.ERROR and ModuleEvent.PROGRESS events.
LoadModuleOperation
Public Methods
 MethodDefined by
  
LoadModuleOperation(moduleURL:String, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)
Creates a new LoadModuleOperation instance.
LoadModuleOperation
 Inherited
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
 Inherited
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
 Inherited
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
 Inherited
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
 Inherited
dispatchCompleteEvent(result:* = null):Boolean
Convenience method for dispatching a OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
dispatchErrorEvent(error:* = null):Boolean
Convenience method for dispatching a OperationEvent.ERROR event.
AbstractOperation
 Inherited
Convenience method for dispatching a OperationEvent.TIMEOUT event.
AbstractOperation
 Inherited
removeCompleteListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.COMPLETE event.
AbstractOperation
 Inherited
removeErrorListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.ERROR event.
AbstractOperation
 Inherited
removeProgressListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.PROGRESS event.
AbstractProgressOperation
 Inherited
removeTimeoutListener(listener:Function, useCapture:Boolean = false):void
Convenience method for removing a listener from the OperationEvent.TIMEOUT event.
AbstractOperation
Protected Methods
 MethodDefined by
 Inherited
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
  
Removes the ModuleEvent.READY, ModuleEvent.ERROR and ModuleEvent.PROGRESS event listeners.
LoadModuleOperation
 Inherited
startTimeout():void
AbstractOperation
Events
 EventSummaryDefined by
 Inherited Dispatched when the current AbstractOperation has new progress information to report.AbstractProgressOperation
 Inherited Dispatched when the current AbstractOperation has completed its functionality successfully.AbstractOperation
 Inherited Dispatched when the current AbstractOperation encountered an error.AbstractOperation
 Inherited Dispatched when the current AbstractOperation timed out.AbstractOperation
Property detail
moduleInfoproperty
protected var moduleInfo:IModuleInfo

The IModuleInfo instance that is used to listen for ModuleEvent.READY, ModuleEvent.ERROR and ModuleEvent.PROGRESS events.

Constructor detail
LoadModuleOperation()constructor
public function LoadModuleOperation(moduleURL:String, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)

Creates a new LoadModuleOperation instance.

Parameters
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.
Method detail
errorHandler()method
protected function errorHandler(event:ModuleEvent):void

Handles the ModuleEvent.ERROR event.

Parameters
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.

Parameters
moduleURL:String
 
applicationDomain:ApplicationDomain
 
securityDomain:SecurityDomain
progressHandler()method 
protected function progressHandler(event:ModuleEvent):void

Handles the ModuleEvent.PROGRESS event.

Parameters
event:ModuleEvent
readyHandler()method 
protected function readyHandler(event:ModuleEvent):void

Handles the ModuleEvent.READY event.

Parameters
event:ModuleEvent
removeEventListeners()method 
protected function removeEventListeners():void

Removes the ModuleEvent.READY, ModuleEvent.ERROR and ModuleEvent.PROGRESS event listeners.