Packagech.capi.net
Interfacepublic interface ILoadPolicy
Implementors DefaultLoadPolicy

Represents a loading policy. The target of the objects implementing this interface is to decides for example whetever a file should be reloaded by the MassLoader or not.

See also

MassLoader


Public Properties
 PropertyDefined By
  canContinue : Boolean
[read-only] Defines if the massive loading can continue or not.
ILoadPolicy
Public Methods
 MethodDefined By
  
processFileClose(file:ILoadManager, closeEvent:Event, source:IMassLoader):ILoadManager
Called by a IMassLoader when a file download is complete.
ILoadPolicy
  
Called by a IMassLoader before it starts to load the specified ILoadManager.
ILoadPolicy
Property Detail
canContinueproperty
canContinue:Boolean  [read-only]

Defines if the massive loading can continue or not. This property will only be checked after the processFileClose() method has been called and only if it returns null.


Implementation
    public function get canContinue():Boolean
Method Detail
processFileClose()method
public function processFileClose(file:ILoadManager, closeEvent:Event, source:IMassLoader):ILoadManager

Called by a IMassLoader when a file download is complete. This can be due to a successful download or not (see the closeEvent parameters).

Parameters

file:ILoadManager — The ILoadManager to process.
 
closeEvent:Event — The event within the ILoadManager is finished.
 
source:IMassLoader — The IMassLoader processing the ILoadManager.

Returns
ILoadManager — The ILoadManager to reload or null if there is nothing do.
processFileOpen()method 
public function processFileOpen(file:ILoadManager, source:IMassLoader):ILoadManager

Called by a IMassLoader before it starts to load the specified ILoadManager. If this method returns null, then the IMassLoader will simply skip the file.

Parameters

file:ILoadManager — The ILoadManager before being started.
 
source:IMassLoader — The IMassLoader processing the ILoadManager.

Returns
ILoadManager — The ILoadManager to load or null if the IMassLoader must skip The file.