Provides the ability to read game state in the form of named properties which are
automatically shared between players and, potentially, the server agent.
public function get(propName:String):Object
Get a property value. Calling this method results in no network traffic, it just
examines values that have already arrived over the network to this client.
Parameters
| propName:String — the name of the property to retrieve.
|
Returns
| Object — the property value, or null if there is no property with that name.
|
public function getPropertyNames(prefix:String = ""):Array
Get the names of all currently-set properties that begin with the specified prefix.
Calling this method results in no network traffic.
Parameters
| prefix:String (default = " ")
|
Returns
public function getTargetId():int
Get the targetId on which this control operates.
Returns
Event object type: com.whirled.net.ElementChangedEvent
Dispatched when an element inside a property has changed in the shared game state.
This event is a result of calling setIn() or setAt().
Event object type: com.whirled.net.PropertyChangedEvent
Dispatched when a property has changed in the shared game state. This event is a result
of calling set() or testAndSet().
Copyright © 2007-2009 Three Rings Design, Inc.