Packagecom.addicted2flash.data
Classpublic class DataProgress

This class represents the numeric progress of data.



Public Properties
 PropertyDefined by
  bytesLoaded : int
return bytes loaded.
DataProgress
  bytesReceivable : int
[read-only] return bytes still receivable ( bytesTotal - bytesLoaded ).
DataProgress
  bytesTotal : int
return bytes total.
DataProgress
  norm : Number
[read-only] return normalized value of data progress ( between 0-1 ).
DataProgress
  percentage : Number
[read-only] return percentage of data progress ( between 0-100 ).
DataProgress
Protected Properties
 PropertyDefined by
  _loaded : int
DataProgress
  _total : int
DataProgress
Public Methods
 MethodDefined by
  
DataProgress(bytesLoaded:int, bytesTotal:int)
Create a new DataProgress.
DataProgress
  
toString():String
String representation of DataProgress.
DataProgress
Property detail
bytesLoadedproperty
bytesLoaded:int  [read-write]

return bytes loaded.

Implementation
    public function get bytesLoaded():int
    public function set bytesLoaded(value:int):void
bytesReceivableproperty 
bytesReceivable:int  [read-only]

return bytes still receivable ( bytesTotal - bytesLoaded ).

Implementation
    public function get bytesReceivable():int
bytesTotalproperty 
bytesTotal:int  [read-write]

return bytes total.

Implementation
    public function get bytesTotal():int
    public function set bytesTotal(value:int):void
_loadedproperty 
protected var _loaded:int
normproperty 
norm:Number  [read-only]

return normalized value of data progress ( between 0-1 ).

Implementation
    public function get norm():Number
percentageproperty 
percentage:Number  [read-only]

return percentage of data progress ( between 0-100 ).

Implementation
    public function get percentage():Number
_totalproperty 
protected var _total:int
Constructor detail
DataProgress()constructor
public function DataProgress(bytesLoaded:int, bytesTotal:int)

Create a new DataProgress.

Parameters
bytesLoaded:int — bytes loaded
 
bytesTotal:int — bytes total
Method detail
toString()method
public function toString():String

String representation of DataProgress.

Returns
String — String representation of DataProgress