Packagecom.addicted2flash.data.service
Classpublic class LoaderQueueServiceGroup
ImplementsIDataServiceGroup, IDataServiceObserver

Concrete implementation of IDataServiceGroup for LoaderQueueServices. These services are provided by LoaderQueue factory method.



Public Properties
 PropertyDefined by
  currentService : IDataService
[read-only] Returns the currently active service that has dispatched an event (f.e error events).
LoaderQueueServiceGroup
  dataProgress : DataProgress
[read-only] Returns the overall progress of the IDataServiceGroup.
LoaderQueueServiceGroup
  dataServiceCount : int
[read-only] Returns the total amount of services in the list.
LoaderQueueServiceGroup
  dataServiceObserverGroupCount : int
[read-only] Returns the number of IDataServiceGroupObserver.
LoaderQueueServiceGroup
  errorMessage : String
[read-only] Returns error message of the IDataService.
LoaderQueueServiceGroup
  httpStatus : int
[read-only] Returns http status of the IDataService.
LoaderQueueServiceGroup
Public Methods
 MethodDefined by
  
LoaderQueueServiceGroup(services:Array)
Creates a new LoaderQueueServiceGroup.
LoaderQueueServiceGroup
  
add(service:IDataService):void
Adds a service to the list of services.
LoaderQueueServiceGroup
  
Adds an IDataServiceGroupObserver to the set of observers for this object.
LoaderQueueServiceGroup
  
dispose():void
free memory for garbage collection.
LoaderQueueServiceGroup
  
Returns service at a given index.
LoaderQueueServiceGroup
  
remove(service:IDataService):void
Removes a service from the list of services.
LoaderQueueServiceGroup
  
removeAt(i:int):void
Removes a service from the list of services at a given index.
LoaderQueueServiceGroup
  
Deletes an IDataServiceGroupObserver from the set of observers of this object.
LoaderQueueServiceGroup
  
Clears the list of observers.
LoaderQueueServiceGroup
Property detail
currentServiceproperty
currentService:IDataService  [read-only]

Returns the currently active service that has dispatched an event (f.e error events).

Implementation
    public function get currentService():IDataService
dataProgressproperty 
dataProgress:DataProgress  [read-only]

Returns the overall progress of the IDataServiceGroup.

NOTE: the totalbytes are just the bytes of the services being processed by the LoaderQueue. This means that it is possible that not all totalbytes of the added services are included.

Implementation
    public function get dataProgress():DataProgress
dataServiceCountproperty 
dataServiceCount:int  [read-only]

Returns the total amount of services in the list.

Implementation
    public function get dataServiceCount():int
dataServiceObserverGroupCountproperty 
dataServiceObserverGroupCount:int  [read-only]

Returns the number of IDataServiceGroupObserver.

Implementation
    public function get dataServiceObserverGroupCount():int
errorMessageproperty 
errorMessage:String  [read-only]

Returns error message of the IDataService.

Implementation
    public function get errorMessage():String
httpStatusproperty 
httpStatus:int  [read-only]

Returns http status of the IDataService.

Implementation
    public function get httpStatus():int
Constructor detail
LoaderQueueServiceGroup()constructor
public function LoaderQueueServiceGroup(services:Array)

Creates a new LoaderQueueServiceGroup.

Parameters
services:Array — services
Method detail
add()method
public function add(service:IDataService):void

Adds a service to the list of services.

Parameters
service:IDataService — service to be added
addDataServiceGroupObserver()method 
public function addDataServiceGroupObserver(o:IDataServiceGroupObserver):void

Adds an IDataServiceGroupObserver to the set of observers for this object.

Parameters
o:IDataServiceGroupObserverIDataServiceGroupObserver to be added.
dispose()method 
public function dispose():void

free memory for garbage collection.

getAt()method 
public function getAt(i:int):IDataService

Returns service at a given index.

Parameters
i:int — index of the service

Returns
IDataService — service at a given index
remove()method 
public function remove(service:IDataService):void

Removes a service from the list of services.

Parameters
service:IDataService — service to be removed
removeAt()method 
public function removeAt(i:int):void

Removes a service from the list of services at a given index.

Parameters
i:int — index of service
removeDataServiceGroupObserver()method 
public function removeDataServiceGroupObserver(o:IDataServiceGroupObserver):void

Deletes an IDataServiceGroupObserver from the set of observers of this object.

Parameters
o:IDataServiceGroupObserverIDataServiceGroupObserver to be deleted.
removeObservers()method 
public function removeObservers():void

Clears the list of observers.