AbstractLoader

Kind of class:public class
Package:com.bourre.load
Inherits from:none
Implements:
Known subclasses:
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.load.AbstractLoader
File last modified:Monday, 24 November 2008, 11:36:46

Summary


Constructor
Instance methods

Constructor

AbstractLoader

public function AbstractLoader (
strategy:LoadStrategy = null)

Instance methods

addASyncCommandListener

final public function addASyncCommandListener (
listener:ASyncCommandListener, rest) : Boolean

Adds the passed-in command listener object as listener
for this command events.

The {VISDOC_CODE_BLOCK_2} function support
the custom arguments provided by the

{VISDOC_CODE_BLOCK_3} method.

#
Parameters:
listener:
the listener object which want to
receive notification from this command
#
rest :
optional arguments corresponding to the
{VISDOC_CODE_BLOCK_4} behavior.
#
Returns:
  • {VISDOC_CODE_BLOCK_5} if the listener have been added as result
    of the call
    #

addEventListener

public function addEventListener (
type:String, listener:Object, rest) : Boolean

addListener

public function addListener (
listener:LoaderListener) : Boolean

execute

public function execute (
e:Event = null) : void

Execute the request according to the current command data.

Stateless commands may use the passed-in event object
as data source for its execution. If the execution can't
be performed because of unreachable data the command have
to throw an error.

#
Parameters:
e:
An event that will be used as data source by the command.
#
Throws:
  • {VISDOC_LINK_0}{VISDOC_CODE_BLOCK_2} — Stateless command use the passed-in event
    as data source for its execution, so the event must provide the right data for
    the current {VISDOC_CODE_BLOCK_3} object.
    #
Specified by:

fireCommandEndEvent

final public function fireCommandEndEvent (
) : void

Fires the {VISDOC_CODE_BLOCK_7} event to the listeners of this command.
#

fireOnLoadErrorEvent

public function fireOnLoadErrorEvent (
message:String = "") : void

fireOnLoadInitEvent

final public function fireOnLoadInitEvent (
) : void

fireOnLoadProgressEvent

public function fireOnLoadProgressEvent (
) : void

fireOnLoadStartEvent

public function fireOnLoadStartEvent (
) : void

fireOnLoadTimeOut

public function fireOnLoadTimeOut (
) : void

getBytesLoaded

public function getBytesLoaded (
) : uint

getBytesTotal

public function getBytesTotal (
) : uint

getContent

public function getContent (
) : Object

getName

public function getName (
) : String

getPerCent

final public function getPerCent (
) : Number

getStrategy

public function getStrategy (

getTimeOut

final public function getTimeOut (
) : Number

getURL

public function getURL (
) : URLRequest

isAntiCache

public function isAntiCache (
) : Boolean

isLoaded

final public function isLoaded (
) : Boolean

isRunning

public function isRunning (
) : Boolean

load

public function load (
url:URLRequest = null, context:LoaderContext = null) : void

prefixURL

public function prefixURL (
sURL:String) : void

release

public function release (
) : void

removeASyncCommandListener

final public function removeASyncCommandListener (
listener:ASyncCommandListener) : Boolean

Removes the passed-in command listener object as listener
for this command events.
#
Parameters:
listener:
the listener object which to remove from this
command's listeners
#
Returns:
  • {VISDOC_CODE_BLOCK_6} if the listener have been removed as result
    of the call
    #

removeEventListener

public function removeEventListener (
type:String, listener:Object) : Boolean

removeListener

public function removeListener (
listener:LoaderListener) : Boolean

run

public function run (
) : void

setAntiCache

public function setAntiCache (
b:Boolean) : void

setContent

public function setContent (
content:Object) : void

setName

public function setName (
sName:String) : void

setTimeOut

final public function setTimeOut (
n:Number) : void

setURL

public function setURL (
url:URLRequest) : void

toString

public function toString (
) : String

Returns the string representation of this instance.
Returns:
  • the string representation of this instance