Packagecom.renaun.fms
Classpublic class ConnectionMonitor
Implementsflash.events.IEventDispatcher



Public Properties
 PropertyDefined by
  camera : Object
Attached Camera for monitoring frams per second
ConnectionMonitor
  size : Number
[read-only]
ConnectionMonitor
Public Methods
 MethodDefined by
  
ConnectionMonitor(name:String, interval:Number = 1)
ConnectionMonitor constructor
ConnectionMonitor
  
clearHistory():void
Clear Stats History
ConnectionMonitor
  
close():void
Close the connections and clear Intervals
ConnectionMonitor
  
connect(netConnection:NetConnection):void
Connect to FMSConnectionMonitor on the FMS server.
ConnectionMonitor
  
formatRate(value:Number):String
Formatting function for Bandwidth rates, uses bit/seconds as the dimension.
ConnectionMonitor
  
formatTime(value:Number):String
Formatting function for Latency time, uses milliseconds as the dimension.
ConnectionMonitor
  
update(ping:Number, up:Number, down:Number):void
Function called by server component to update latency
ConnectionMonitor
Property detail
cameraproperty
public var camera:Object

Attached Camera for monitoring frams per second

sizeproperty 
size:Number  [read-only]Implementation
    public function get size():Number
Constructor detail
ConnectionMonitor()constructor
public function ConnectionMonitor(name:String, interval:Number = 1)

ConnectionMonitor constructor

Parameters
name:String
 
interval:Number (default = 1)
Method detail
clearHistory()method
public function clearHistory():void

Clear Stats History

close()method 
public function close():void

Close the connections and clear Intervals

connect()method 
public function connect(netConnection:NetConnection):void

Connect to FMSConnectionMonitor on the FMS server. You must have the FMSConnectionMonitor component present.

Parameters
netConnection:NetConnection — Connect to netConnection
formatRate()method 
public function formatRate(value:Number):String

Formatting function for Bandwidth rates, uses bit/seconds as the dimension.

Parameters
value:Number — The rate value in bytes

Returns
String
formatTime()method 
public function formatTime(value:Number):String

Formatting function for Latency time, uses milliseconds as the dimension.

Parameters
value:Number — The rate value in milliseconds

Returns
String
update()method 
public function update(ping:Number, up:Number, down:Number):void

Function called by server component to update latency

Parameters
ping:Number
 
up:Number
 
down:Number