
Integrating Macromedia Flash with databases wasn't easy—until Flash MX 2004 Professional. Using the Flash components that ship with the Flash MX 2004, you can very easily create dynamic and engaging Rich Internet Applications (RIA).
In this tutorial, you will connect a Flash user interface with a MySQL database using PHP scripting. The application you are going to develop is a business directory. This business directory has three sections: Choose Category, Choose Business, and View Details of the Business. You will be using the Flash MX 2004 UI and Data components to populate the content in the interface.
This article will not cover all Data components. It will use XMLConnector components, Dataset components, and a few UI components. For more information on other Data components, you can see following tutorials:
Flash MX 2004 UI Components (UltraShock)
(Basic tutorials covering almost all UI components)
Controlling Media Components with Macromedia Flash MX 2004 Behaviors
(Media component tutorial)
Building a Tip of the Day Application (Part 2): Working with Web Services
(Web services tutorial)
Note: This tutorial will also not go into detail about installing web servers and PHP. The following Developer Center tutorials that can help with this setup, depending on your platform:
You can find more details on required software in the following Requirements section.
To complete this tutorial you will need to install the following software and files:
Good and thorough planning always saves development time. Before you start, understand and plan what you intend to create. In this tutorial, your aim is to develop a business directory, which will contain the following:
Categories
Business Listing
Think of your screen as divided into three vertical sections: