Packagecom.bourre.load.strategy
Interfacepublic interface LoadStrategy
ImplementorsLoaderStrategy, SoundURLStrategy, StreamLoaderStrategy, URLLoaderStrategy

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The LoadStrategy interface defines rule for loading strategy implementation.



Public Methods
 MethodDefined by
  
Returns current loaded bytes amount.
LoadStrategy
  
Returns total bytes to load by this strategy.
LoadStrategy
  
load(request:URLRequest = null, context:LoaderContext = null):void
Loads content.
LoadStrategy
  
release():void
Releases loading process.
LoadStrategy
  
setOwner(owner:Loader):void
Sets the owner of this strategy.
LoadStrategy
Method detail
getBytesLoaded()method
public function getBytesLoaded():uint

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns current loaded bytes amount.

Returns
uint
getBytesTotal()method 
public function getBytesTotal():uint

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns total bytes to load by this strategy.

Returns
uint
load()method 
public function load(request:URLRequest = null, context:LoaderContext = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Loads content.

Parameters
request:URLRequest (default = null) — The absolute or relative URL of the content to load.
 
context:LoaderContext (default = null) — (optional) A LoaderContext object, which has properties that define the following:
  • Whether or not to check for the existence of a policy file upon loading the object
  • The ApplicationDomain for the loaded object
  • The SecurityDomain for the loaded object
  • /ul>

    For complete details, see the description of the properties in the LoaderContext class.

release()method 
public function release():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Releases loading process.

setOwner()method 
public function setOwner(owner:Loader):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Sets the owner of this strategy.

Parameters
owner:Loader — object who use this strategy