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.
| PhidgetManager | A class for accessing the Phidget Manager on a webservice. |
| Events | Events supported by PhidgetManager. |
| Functions | |
| open | Opens a connection to a phidget manager. |
| close | Closes the connection to a phidget manager. |
| Properties | |
| Address | Gets the server address. |
| Port | Gets the server port. |
Events supported by PhidgetManager. Pass these constants to the addEventListener() function when adding event listeners to a Phidget object.
| PhidgetManagerEvent.CONNECT | server connect |
| PhidgetManagerEvent.DISCONNECT | server disconnect |
| PhidgetManagerEvent.ATTACH | phidget attach |
| PhidgetManagerEvent.DETACH | phidget detach |
| PhidgetErrorEvent.ERROR | asynchronous error |
public function open( address: String, port: Number, password: String = null ):void
Opens a connection to a phidget manager.
| address | address of the webservice. This can be ‘localhost’ when running from a single computer. |
| port | port of the webservice. This is 5001 by default. |
| password | password of the webservice. This is optional and doesn’t need to be specified for unsecured webservices. |
Opens a connection to a phidget manager.
public function open( address: String, port: Number, password: String = null ):void
Closes the connection to a phidget manager.
public function close():void
Gets the server address.
public function get Address():String
Gets the server port.
public function get Port():int