- Top
- Summary
- Constructors
- Class properties
- Instance properties
- Class methods
- Instance methods
- Event handlers
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
- AbstractLoader (strategy:LoadStrategy = null)
Instance methods
- execute (e:Event = null) : void
- Execute the request according to the current command data.
- getStrategy : LoadStrategy
- load (url:URLRequest = null, context:LoaderContext = null) : void
- getBytesLoaded : uint
- getBytesTotal : uint
- getPerCent : Number
- isLoaded : Boolean
- getURL : URLRequest
- setURL (url:URLRequest) : void
- addASyncCommandListener (listener:ASyncCommandListener, rest) : Boolean
- Adds the passed-in command listener object as listener
- removeASyncCommandListener (listener:ASyncCommandListener) : Boolean
- Removes the passed-in command listener object as listener
- addListener (listener:LoaderListener) : Boolean
- removeListener (listener:LoaderListener) : Boolean
- addEventListener (type:String, listener:Object, rest) : Boolean
- removeEventListener (type:String, listener:Object) : Boolean
- getName : String
- setName (sName:String) : void
- setAntiCache (b:Boolean) : void
- isAntiCache : Boolean
- prefixURL (sURL:String) : void
- getTimeOut : Number
- setTimeOut (n:Number) : void
- release : void
- getContent : Object
- setContent (content:Object) : void
- fireOnLoadProgressEvent : void
- fireOnLoadInitEvent : void
- fireOnLoadStartEvent : void
- fireOnLoadErrorEvent (message:String = "") : void
- fireOnLoadTimeOut : void
- fireCommandEndEvent : void
Constructor
AbstractLoader
Instance methods
addASyncCommandListener
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.addEventListener
public function addEventListener (type:String, listener:Object, rest) : BooleanaddListener
execute
public function execute (e:Event = null) : voidExecute 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.fireCommandEndEvent
final public function fireCommandEndEvent () : voidFires the {VISDOC_CODE_BLOCK_7} event to the listeners of this command.#Specified by:fireOnLoadErrorEvent
public function fireOnLoadErrorEvent (message:String = "") : voidfireOnLoadInitEvent
final public function fireOnLoadInitEvent () : voidfireOnLoadProgressEvent
public function fireOnLoadProgressEvent () : voidfireOnLoadStartEvent
public function fireOnLoadStartEvent () : voidfireOnLoadTimeOut
public function fireOnLoadTimeOut () : voidgetBytesLoaded
public function getBytesLoaded () : uintgetBytesTotal
public function getBytesTotal () : uintgetContent
public function getContent () : ObjectgetName
public function getName () : StringgetPerCent
final public function getPerCent () : NumbergetStrategy
getTimeOut
final public function getTimeOut () : NumbergetURL
public function getURL () : URLRequestisAntiCache
public function isAntiCache () : BooleanisLoaded
final public function isLoaded () : BooleanisRunning
public function isRunning () : Booleanload
public function load (url:URLRequest = null, context:LoaderContext = null) : voidprefixURL
public function prefixURL (sURL:String) : voidrelease
public function release () : voidremoveASyncCommandListener
Removes the passed-in command listener object as listener#
for this command events.removeEventListener
public function removeEventListener (type:String, listener:Object) : BooleanremoveListener
run
public function run () : voidsetAntiCache
public function setAntiCache (b:Boolean) : voidsetContent
public function setContent (content:Object) : voidsetName
public function setName (sName:String) : voidsetTimeOut
final public function setTimeOut (n:Number) : voidsetURL
public function setURL (url:URLRequest) : voidtoString
public function toString () : StringReturns the string representation of this instance.Returns:- the string representation of this instance
- removeASyncCommandListener (listener:ASyncCommandListener) : Boolean