EventDispatcher |
PhidgetDictionary |
A class for accessing the Phidget Dictionary. See the programming manual for more specific API details, supported functionality, units, etc.
| PhidgetDictionary | A class for accessing the Phidget Dictionary. |
| Events | Events supported by all PhidgetDictionary. |
| Functions | |
| open | Opens a connection to a dictionary. |
| close | closes the connection to a dictionary. |
| addKey | Adds or changes a key/value pair to the dictionary. |
| removeKey | Removes a (set) of key(s) that match the pattern. |
| Properties | |
| Address | Gets the server address. |
| Port | Gets the server port. |
public function open( address: String, port: Number, password: String = null ):void
Opens a connection to a dictionary.
| 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 dictionary.
public function open( address: String, port: Number, password: String = null ):void
closes the connection to a dictionary.
public function close():void
Adds or changes a key/value pair to the dictionary.
public function addKey( key: String, value: String, persistent: Boolean = true ):void
Removes a (set) of key(s) that match the pattern.
public function removeKey( pattern: String ):void
Gets the server address.
public function get Address():String
Gets the server port.
public function get Port():int