Packagealternativa.utils
Classpublic final class FPS
InheritanceFPS Inheritance flash.display.Sprite

A component for displaying some program parameters. Shows numbered values and FPS and memory usage graphics. There is also a possibility to display bytes got from socket, bytes sent via socket, downloaded bytes.



Public Properties
 PropertyDefined by
  visible : Boolean
[static] Visibility of the indicator.
FPS
Public Methods
 MethodDefined by
  
FPS(parent:DisplayObjectContainer)
Create class instance.
FPS
  
addDownloadBytes(bytes:uint):void
[static]Add downloaded bytes value.
FPS
  
addSocketInBytes(bytes:uint):void
[static]Add downloaded from a socket bytes value.
FPS
  
addSocketOutBytes(bytes:uint):void
[static]Add sent via socket bytes value.
FPS
  
hide():void
[static]Hides and stops the indicator.
FPS
  
init(parent:DisplayObjectContainer):void
[static]Create component.
FPS
  
show():void
[static]Shows and runs the indicator.
FPS
Property detail
visibleproperty
visible:Boolean  [read-write]

Visibility of the indicator.

Implementation
    public static function get visible():Boolean
    public function set visible(value:Boolean):void
Constructor detail
FPS()constructor
public function FPS(parent:DisplayObjectContainer)

Create class instance. Class is a singleton, and there will be an error if attempting to call constructor for a second time.

Parameters
parent:DisplayObjectContainercontainer, which component is placed on

Throws
Error — on a second constructor call
Method detail
addDownloadBytes()method
public static function addDownloadBytes(bytes:uint):void

Add downloaded bytes value.

Parameters
bytes:uintbytes quantity
addSocketInBytes()method 
public static function addSocketInBytes(bytes:uint):void

Add downloaded from a socket bytes value.

Parameters
bytes:uintbytes quantity
addSocketOutBytes()method 
public static function addSocketOutBytes(bytes:uint):void

Add sent via socket bytes value.

Parameters
bytes:uintbytes quantity
hide()method 
public static function hide():void

Hides and stops the indicator.

init()method 
public static function init(parent:DisplayObjectContainer):void

Create component. Calling FPS.init(container) will create an indicator in container's right upper corner.

Parameters
parent:DisplayObjectContainercontainer, which has the component inside
show()method 
public static function show():void

Shows and runs the indicator.