The ZIP file you downloaded at the beginning of this article in the Requirements section contains all of the code for the user interface.
Create the horse_race directory on your Flex server and copy the following files from the provided ZIP file:
Open horse_example_01.mxml and horse_example_02 – 04, and change line 18 to reflect the Flash Communication Server address.
my_fcs.connect('rtmp://{your server}/horse_race_01');
Browse to http://{your server}/horse_race/ horse_example_01.mxml in your web browser. The client interface appears (Figure 1).
Figure 1: FCS Shared Object shows Horse 4 in the lead
The Flex application is quite simple, it has five horse tracks, which are updated through data binding with data from FCS shared object. Review the code, and refer to "Integrating Remote Shared Objects with Flex and Flash Communication Server" if you have any questions on using the FCSService or SharedObject tags.