| Package | alternativa.utils |
| Class | public final class FPS |
| Inheritance | FPS flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| visible : Boolean [static] Visibility of the indicator.
| FPS | ||
| Method | Defined 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 | ||
| visible | property |
visible:Boolean [read-write]Visibility of the indicator.
Implementation public static function get visible():Boolean
public function set visible(value:Boolean):void
| 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.
Parametersparent:DisplayObjectContainer — container, which component is placed on |
Error — on a second constructor call |
| addDownloadBytes | () | method |
public static function addDownloadBytes(bytes:uint):voidAdd downloaded bytes value.
Parametersbytes:uint — bytes quantity |
| addSocketInBytes | () | method |
public static function addSocketInBytes(bytes:uint):voidAdd downloaded from a socket bytes value.
Parametersbytes:uint — bytes quantity |
| addSocketOutBytes | () | method |
public static function addSocketOutBytes(bytes:uint):voidAdd sent via socket bytes value.
Parametersbytes:uint — bytes quantity |
| hide | () | method |
public static function hide():voidHides and stops the indicator.
| init | () | method |
public static function init(parent:DisplayObjectContainer):voidCreate component. Calling FPS.init(container) will create an indicator in container's right upper corner.
parent:DisplayObjectContainer — container, which has the component inside |
| show | () | method |
public static function show():voidShows and runs the indicator.