We borrowed the code for the alarm clock UI from Adobe’s manual on programming ActionScript 3. This example was used there for explaining events (see http://livedocs .adobe.com/flex/3/html/help.html?content=16_Event_handling_7.html). For your con- venience, we’ve included this code in Flash Builder’s project NetworkingSamples, which contains all examples from this chapter. In Example 6-28’s Flex application you can find the consumer that is ready to consume messages from the destination ControlCenter. RemoteObject is used to start or stop the server-side feed. Example 6-28. RemotingViaStreaming.mxml When the consumer receives the message, the function handleMessage() extracts the instance of RemoteCall from the message body and calls the method whose name is located in the property RemoteCall.methodName: var rc:RemoteCall = msg.body as RemoteCall; this[rc.methodName].apply(this, rc.parameters.source); A Server As a Command Center | 317