Using the RDBMSResolver to Update a Database with Flash MX Professional 2004
Mark Rausch
Table of Contents
With the release of Macromedia Flash MX Data Connection Kit, Macromedia introduced the data-aware Firefly Components suite, which includes a DataSet component and plug-ins for connecting to various databases. Flash MX Professional 2004 includes updated versions of these components that work with databinding and take advantage of various Macromedia Flash Player enhancements.
In this article I show you how to build a complete Flash application that uses the DataSet, DataGrid, RDBMSResolver components together with a ColdFusion component to read data from an Access database, edit the data, and update the database. I also detail the format of the resolver's update and result packets and discuss how to build your own server functions to parse the XML, update the database, and construct a result packet.
Requirements
To complete this tutorial you will need to install the following software and files:
Macromedia Flash MX Professional 2004
Macromedia ColdFusion MX
Note: If ColdFusion MX is installed on a different machine than the one on which you build the Flash movie, you must place the proper IP address in the URL to access the component.
Flash Remoting MX for ColdFusion MX (Included with ColdFusion MX)
Flash Remoting MX Components for Flash MX Professional 2004 (Contains NetServices.as)
You should also be at least minimally familiar with creating and running Flash movies using Flash MX 2004.
Download sample files
rdbms_resolver_sources.zip
(266K)
Important security note: The sample ColdFusion component gives you the ability to run a query statement against any ColdFusion data source that you have set up on your machine. You should install it to the web root folder only within a development environment behind a secure firewall or on a computer that is not connected to the Internet. If you intend to use this component in a production environment you must take the necessary steps to secure it.