PhidgetManager

EventDispatcher
PhidgetManager

A class for accessing the Phidget Manager on a webservice.  See the programming manual for more specific API details, supported functionality, units, etc.

Summary
PhidgetManagerA class for accessing the Phidget Manager on a webservice.
EventsEvents supported by PhidgetManager.
Functions
openOpens a connection to a phidget manager.
closeCloses the connection to a phidget manager.
Properties
AddressGets the server address.
PortGets the server port.

Events

Events supported by PhidgetManager.  Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.

PhidgetManagerEvent.CONNECTserver connect
PhidgetManagerEvent.DISCONNECTserver disconnect
PhidgetManagerEvent.ATTACHphidget attach
PhidgetManagerEvent.DETACHphidget detach
PhidgetErrorEvent.ERRORasynchronous error

Functions

open

public function open(address: String,  
port: Number,  
password: String = null):void

Opens a connection to a phidget manager.

Parameters

addressaddress of the webservice.  This can be ‘localhost’ when running from a single computer.
portport of the webservice.  This is 5001 by default.
passwordpassword of the webservice.  This is optional and doesn’t need to be specified for unsecured webservices.

close

public function close():void

Closes the connection to a phidget manager.

Properties

Address

public function get Address():String

Gets the server address.

Port

public function get Port():int

Gets the server port.

public function open(address: String,  
port: Number,  
password: String = null):void
Opens a connection to a phidget manager.
public function close():void
Closes the connection to a phidget manager.
public function get Address():String
Gets the server address.
public function get Port():int
Gets the server port.
Close