| Package | com.addicted2flash.data.service |
| Class | public class LoaderQueueService |
| Implements | IDataService |
ILoaderQueueService created by LoaderQueue.
To handle specific DataServiceEventTypes a listener have to add itself to the list of
observers (add
The following DataServiceEventTypes are going to be dispatched:
DataServiceEventType.COMPLETEDataServiceEventType.PROGRESSDataServiceEventType.IO_ERRORDataServiceEventType.SECURITY_ERRORDataServiceEventType.HTTP_STATUS
| Property | Defined by | ||
|---|---|---|---|
| attachment : * [read-only]
Returns attachment of the
IDataService. | LoaderQueueService | ||
| data : Object [read-only]
Returns requested data.
| LoaderQueueService | ||
| dataProgress : DataProgress
[read-only]
Returns progress of the
IDataService. | LoaderQueueService | ||
| dataServiceObserverCount : int [read-only]
Returns the number of
IDataServiceObserver. | LoaderQueueService | ||
| errorMessage : String [read-only]
Returns error message of the
IDataService. | LoaderQueueService | ||
| httpStatus : int [read-only]
Returns http status of the
IDataService. | LoaderQueueService | ||
| loaderContext : LoaderContext [read-only]
Returns loader context of the
IDataService. | LoaderQueueService | ||
| priority : int [read-only]
Returns priority of the
IDataService. | LoaderQueueService | ||
| state : int [read-only]
Returns state of the
IDataService. | LoaderQueueService | ||
| urlRequest : URLRequest [read-only]
Returns request of the
IDataService. | LoaderQueueService | ||
| Method | Defined by | ||
|---|---|---|---|
|
LoaderQueueService(loader:ILoader, urlRequest:URLRequest, context:LoaderContext = null, anchor:int = null, priority:* = 0)
Create a new
LoaderQueueService. | LoaderQueueService | ||
|
Adds an
IDataServiceObserver to the set of observers for this object. | LoaderQueueService | ||
|
dispose():void
free memory for garbage collection.
| LoaderQueueService | ||
|
notifyDataServiceObservers(type:int):void
Registered
IDataServiceObserver will be notified. | LoaderQueueService | ||
|
pause():void
| LoaderQueueService | ||
|
Deletes an
IDataServiceObserver from the set of observers of this object. | LoaderQueueService | ||
|
removeObservers():void
Clears the list of observers.
| LoaderQueueService | ||
|
start():void
| LoaderQueueService | ||
|
stop():void
| LoaderQueueService | ||
|
toString():String
String representation of this
LoaderQueueService. | LoaderQueueService | ||
| attachment | property |
attachment:* [read-only]
Returns attachment of the IDataService.
public function get attachment():*
| data | property |
data:Object [read-only]Returns requested data.
Implementation public function get data():Object
| dataProgress | property |
dataProgress:DataProgress [read-only]
Returns progress of the IDataService.
public function get dataProgress():DataProgress
| dataServiceObserverCount | property |
dataServiceObserverCount:int [read-only]
Returns the number of IDataServiceObserver.
public function get dataServiceObserverCount():int
| errorMessage | property |
errorMessage:String [read-only]
Returns error message of the IDataService.
public function get errorMessage():String
| httpStatus | property |
httpStatus:int [read-only]
Returns http status of the IDataService.
public function get httpStatus():int
| loaderContext | property |
loaderContext:LoaderContext [read-only]
Returns loader context of the IDataService.
public function get loaderContext():LoaderContext
| priority | property |
priority:int [read-only]
Returns priority of the IDataService.
public function get priority():int
| state | property |
state:int [read-only]
Returns state of the IDataService.
public function get state():int
| urlRequest | property |
urlRequest:URLRequest [read-only]
Returns request of the IDataService.
public function get urlRequest():URLRequest
| LoaderQueueService | () | constructor |
public function LoaderQueueService(loader:ILoader, urlRequest:URLRequest, context:LoaderContext = null, anchor:int = null, priority:* = 0)
Create a new LoaderQueueService.
loader:ILoader — ILoader for different loading procedures (f.e. bitmaps or xml)
|
|
urlRequest:URLRequest — IServiceRequest
|
|
context:LoaderContext (default = null) — any data (f.e. data dependent to the request)
|
|
anchor:int (default = null) — priority
|
|
priority:* (default = 0) |
| addDataServiceObserver | () | method |
public function addDataServiceObserver(o:IDataServiceObserver):void
Adds an IDataServiceObserver to the set of observers for this object.
o:IDataServiceObserver — IDataServiceObserver to be added.
|
| dispose | () | method |
public function dispose():voidfree memory for garbage collection.
| notifyDataServiceObservers | () | method |
public function notifyDataServiceObservers(type:int):void
Registered IDataServiceObserver will be notified.
type:int — type of notification
|
| pause | () | method |
public function pause():void
| removeDataServiceObserver | () | method |
public function removeDataServiceObserver(o:IDataServiceObserver):void
Deletes an IDataServiceObserver from the set of observers of this object.
o:IDataServiceObserver — IDataServiceObserver to be deleted.
|
| removeObservers | () | method |
public function removeObservers():voidClears the list of observers.
| start | () | method |
public function start():void
| stop | () | method |
public function stop():void
| toString | () | method |
public function toString():String
String representation of this LoaderQueueService.
String — String representation of this LoaderQueueService
|