The Adobe Flash Media Server event gateway sample application shows an Adobe ColdFusion application that uses the Flash Media Server event gateway to manipulate Flash Media Server shared objects. The application lets you manipulate a shared object using the ColdFusion application or the Adobe Flash client. The changes that you make are reflected in a graph, and the database is updated.
In the sample application (see Figure 1), the left pane displays a form to modify sales data and lists sales data. This is the ColdFusion application. The lower-right pane displays the Flash client that contains a form to modify sales data. The upper-right pane displays the Flash client that displays a graph of the sales data. The shared object name is SalesDataSO.

Figure 1. Flash Media Server event gateway sample application
When you initially browse to the application, the graph does not appear because you have not yet connected the Flash client to Flash Media Server.
The files in fms_gateway_demo.zip, demonstrate a simple ColdFusion application that uses the Flash Media Server event gateway.
To use this sample application, you will need to install the following software and files:
The following files, which are included in fms_gateway_demo.zip, comprise the example application:
To install the sample application:
In ColdFusion Administrator, create an instance of the gateway with the following specifications:
To run the sample application:
In the left pane, modify the sales data for any month in 2005, and then click Submit.
Note: The graph in the upper-right pane changes to reflect the new data. Modifications you make through the ColdFusion application appear in the Flash client.
In the lower-right pane, enter a sales amount for any month of 2005, and then click Submit.
Note: The graph in the upper-right pane changes to reflect the new data. Modifications you make in one Flash client appear in the other Flash client.
In the left pane, click Refresh.
Note: The changes you make to the data through the Flash client are reflected in the ColdFusion application.
Ramchandra Kulkarni is a senior computer scientist on the ColdFusion development team, and has been working at Adobe since 2004. In his earlier jobs he worked as a software architect and developed solutions in a number of domains like finance, retail, medical, etc. He has been programming since 1994 using C, C++, MFC, Java/JEE, and other technologies.