Packagecom.bourre.load.strategy
Classpublic class LoaderStrategy
ImplementsLoadStrategy

Player version: Flash Player 9.0
Language version: ActionScript 3.0

The LoaderStrategy class define a loading strategy using Adobe com.bourre.load.Loader loader.



Public Methods
 MethodDefined by
  
Creates new LoaderStrategy instance.
LoaderStrategy
  
Returns current loaded bytes amount.
LoaderStrategy
  
Returns total bytes to load by this strategy.
LoaderStrategy
  
getContentLoaderInfo():LoaderInfo
Returns informations about loaded content.
LoaderStrategy
  
load(request:URLRequest = null, context:LoaderContext = null):void
Loads content.
LoaderStrategy
  
loadBytes(bytes:ByteArray, context:LoaderContext = null):void
Loads from binary data stored in a ByteArray object.
LoaderStrategy
  
release():void
Releases loading process.
LoaderStrategy
  
setOwner(owner:Loader):void
Sets the owner of this strategy.
LoaderStrategy
  
toString():String
Returns the string representation of this instance.
LoaderStrategy
Protected Methods
 MethodDefined by
  
LoaderStrategy
  
_onComplete(e:Event):void
LoaderStrategy
  
_onHttpStatus(e:HTTPStatusEvent):void
LoaderStrategy
  
_onInit(e:Event):void
LoaderStrategy
  
_onIOError(e:IOErrorEvent):void
LoaderStrategy
  
_onOpen(e:Event):void
LoaderStrategy
  
_onProgress(e:ProgressEvent):void
LoaderStrategy
  
_onSecurityError(e:SecurityErrorEvent):void
LoaderStrategy
  
_onUnLoad(e:Event):void
LoaderStrategy
Constructor detail
LoaderStrategy()constructor
public function LoaderStrategy()

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Creates new LoaderStrategy instance.

Method detail
_initLoaderStrategy()method
protected function _initLoaderStrategy():void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

_onComplete()method 
protected function _onComplete(e:Event):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:Event
_onHttpStatus()method 
protected function _onHttpStatus(e:HTTPStatusEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:HTTPStatusEvent
_onInit()method 
protected function _onInit(e:Event):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:Event
_onIOError()method 
protected function _onIOError(e:IOErrorEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:IOErrorEvent
_onOpen()method 
protected function _onOpen(e:Event):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:Event
_onProgress()method 
protected function _onProgress(e:ProgressEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:ProgressEvent
_onSecurityError()method 
protected function _onSecurityError(e:SecurityErrorEvent):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:SecurityErrorEvent
_onUnLoad()method 
protected function _onUnLoad(e:Event):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Parameters
e:Event
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
getContentLoaderInfo()method 
public function getContentLoaderInfo():LoaderInfo

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Returns informations about loaded content.

Returns
LoaderInfo
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.

loadBytes()method 
public function loadBytes(bytes:ByteArray, context:LoaderContext = null):void

Player version: Flash Player 9.0
Language version: ActionScript 3.0

Loads from binary data stored in a ByteArray object.

Parameters
bytes:ByteArray — A ByteArray object.
 
context:LoaderContext (default = null) — A LoaderContext object.
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