| Package | org.as3lib.kitchensync.core |
| Class | public final class Synchronizer |
| Inheritance | Synchronizer flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| currentTimestamp : Timestamp
[read-only]
Returns the current time as a timestamp object.
| Synchronizer | ||
| frameRate : int [read-only] The frameRate (as defined in the stage)
| Synchronizer | ||
| frameRateSeed : DisplayObject [write-only]
Sets the framerate seed for the synchronizer.
| Synchronizer | ||
| timerDelay : int [read-only]
| Synchronizer | ||
| Method | Defined by | ||
|---|---|---|---|
|
Synchronizer(enforcer:SingletonEnforcer)
Constructor.
| Synchronizer | ||
|
[static]
Returns an instance to the single instance of the class.
| Synchronizer | ||
|
registerClient(client:ISynchronizerClient):void
Adds a Syncrhonizer client to the list that will be updated when the dispatchUpdate() method is called.
| Synchronizer | ||
|
unregisterClient(client:ISynchronizerClient):void
Removes a Syncrhonizer client from the list.
| Synchronizer | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Synchronizer | ||||
| currentTimestamp | property |
currentTimestamp:Timestamp [read-only]Returns the current time as a timestamp object.
Implementation public function get currentTimestamp():Timestamp
| frameRate | property |
frameRate:int [read-only]The frameRate (as defined in the stage)
Implementation public function get frameRate():int
| frameRateSeed | property |
frameRateSeed:DisplayObject [write-only]Sets the framerate seed for the synchronizer.
Implementation public function set frameRateSeed(value:DisplayObject):void
| timerDelay | property |
timerDelay:int [read-only]Implementation
public function get timerDelay():int
| Synchronizer | () | constructor |
public function Synchronizer(enforcer:SingletonEnforcer)Constructor. SingletonEnforcer prevents this class from being instantiated without using the initialize() method.
Parametersenforcer:SingletonEnforcer — - a SingletonEnforcer can only be created internally.
|
| getInstance | () | method |
public static function getInstance():SynchronizerReturns an instance to the single instance of the class.
ReturnsSynchronizer —
a reference to the only instance of the Synchronizer.
|
| registerClient | () | method |
public function registerClient(client:ISynchronizerClient):voidAdds a Syncrhonizer client to the list that will be updated when the dispatchUpdate() method is called.
Parametersclient:ISynchronizerClient — The client that will receive the update.
|
| unregisterClient | () | method |
public function unregisterClient(client:ISynchronizerClient):voidRemoves a Syncrhonizer client from the list.
Parametersclient:ISynchronizerClient — The client that will be unregistered.
|
| synchronizerUpdate | event |