Packagecom.addicted2flash.data.service
Classpublic class LoaderQueueService
ImplementsIDataService

This class is represents a 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.COMPLETE
  • DataServiceEventType.PROGRESS
  • DataServiceEventType.IO_ERROR
  • DataServiceEventType.SECURITY_ERROR
  • DataServiceEventType.HTTP_STATUS


  • Public Properties
     PropertyDefined 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
    Public Methods
     MethodDefined 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
      
    Registered IDataServiceObserver will be notified.
    LoaderQueueService
      
    pause():void
    LoaderQueueService
      
    Deletes an IDataServiceObserver from the set of observers of this object.
    LoaderQueueService
      
    Clears the list of observers.
    LoaderQueueService
      
    start():void
    LoaderQueueService
      
    stop():void
    LoaderQueueService
      
    toString():String
    String representation of this LoaderQueueService.
    LoaderQueueService
    Property detail
    attachmentproperty
    attachment:*  [read-only]

    Returns attachment of the IDataService.

    Implementation
        public function get attachment():*
    dataproperty 
    data:Object  [read-only]

    Returns requested data.

    Implementation
        public function get data():Object
    dataProgressproperty 
    dataProgress:DataProgress  [read-only]

    Returns progress of the IDataService.

    Implementation
        public function get dataProgress():DataProgress
    dataServiceObserverCountproperty 
    dataServiceObserverCount:int  [read-only]

    Returns the number of IDataServiceObserver.

    Implementation
        public function get dataServiceObserverCount():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
    loaderContextproperty 
    loaderContext:LoaderContext  [read-only]

    Returns loader context of the IDataService.

    Implementation
        public function get loaderContext():LoaderContext
    priorityproperty 
    priority:int  [read-only]

    Returns priority of the IDataService.

    Implementation
        public function get priority():int
    stateproperty 
    state:int  [read-only]

    Returns state of the IDataService.

    Implementation
        public function get state():int
    urlRequestproperty 
    urlRequest:URLRequest  [read-only]

    Returns request of the IDataService.

    Implementation
        public function get urlRequest():URLRequest
    Constructor detail
    LoaderQueueService()constructor
    public function LoaderQueueService(loader:ILoader, urlRequest:URLRequest, context:LoaderContext = null, anchor:int = null, priority:* = 0)

    Create a new LoaderQueueService.

    Parameters
    loader:ILoaderILoader for different loading procedures (f.e. bitmaps or xml)
     
    urlRequest:URLRequestIServiceRequest
     
    context:LoaderContext (default = null) — any data (f.e. data dependent to the request)
     
    anchor:int (default = null) — priority
     
    priority:* (default = 0)
    Method detail
    addDataServiceObserver()method
    public function addDataServiceObserver(o:IDataServiceObserver):void

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

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

    free memory for garbage collection.

    notifyDataServiceObservers()method 
    public function notifyDataServiceObservers(type:int):void

    Registered IDataServiceObserver will be notified.

    Parameters
    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.

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

    Clears 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.

    Returns
    String — String representation of this LoaderQueueService