Packagecom.bourre.load.strategy
Classpublic class StreamLoaderStrategy
ImplementsLoadStrategy

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The URLStreamStrategy class define a loading strategy using URLStream loader.

See also

com.bourre.load.StreamLoader


Public Methods
 MethodDefined by
  
Creates new StreamStrategy instance.
StreamLoaderStrategy
  
Returns current loaded bytes amount.
StreamLoaderStrategy
  
Returns total bytes to load by this strategy.
StreamLoaderStrategy
  
load(request:URLRequest = null, context:LoaderContext = null):void
Loads content.
StreamLoaderStrategy
  
release():void
Releases loading process.
StreamLoaderStrategy
  
setOwner(owner:Loader):void
Sets the owner of this strategy.
StreamLoaderStrategy
  
toString():String
Returns the string representation of this instance.
StreamLoaderStrategy
Constructor detail
StreamLoaderStrategy()constructor
public function StreamLoaderStrategy()

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates new StreamStrategy instance.

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
toString()method 
public function toString():String

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns the string representation of this instance.

Returns
String — the string representation of this instance