
1310
DEVELOPING
COLDFUSION 9 APPLICATIONS
Using External Resources
Las
t
upda
te
d 8/5/2010
The following image shows the interaction between Flash Media Server, the FMS event gateway, and the ColdFusion
application:
Modifying data in a ColdFusion application
The FMS event gateway lets ColdFusion applications modify Flash Media Server shared objects. The following steps
occur when data that affects a shared object is modified in a ColdFusion application:
1
The user submits a form that contains data to modify using a ColdFusion page.
2
The ColdFusion page calls the appropriate CFC, which contains a method to update the database.
3
The method in the CFC updates the database and calls a method in the FMS Gateway Helper.
4
The FMS Gateway Helper calls the FMS event gateway to update the appropriate shared object.
5
Flash Media Server updates the shared object.
6
Flash Media Server notifies the Flash client that a shared object has changed.
7
The Flash client makes the changes in its content as appropriate.
Application development and deployment process
The following is a typical process for developing and deploying an application that uses the FMS event gateway:
1
Design your application.
2
Configure an FMS event gateway instance to use the Flash Media Server.
3
Write your ColdFusion CFCs, CFM pages, and any other application elements.
4
Create or identify a Flash client that manipulates a Flash Media Server shared object to test your ColdFusion
application.
5
Test your application using Flash Media Server and the Flash client.
6
Make the application publicly available.
ColdFusion Server
1.
2.
Flash client
Flash client
FMS event gateway
FMS_gateway.cfc
sales.cfc
FMS Gateway Helper
Flash Media Server
Sales Data So
Sales Data List
Changed Sales Data
10.
9.
3.
database
4.
5.
6.
7.
8.