Note: This article was created based on Flex 2. Minor changes in the description and code may be necessary before it can be applied to Flex 3.
The use of PHP and MySQL as a back end for Adobe Flex applications can be a powerful combination for web developers dealing with clients who do not require enterprise-level solutions. Drupal—a modular, PHP-based content management system—can further enhance this marriage of technologies by providing a nearly instant, structured environment for managing data and content. With the introduction of the Services module for Drupal 5.x written by Scott Nelson, Drupal provides an optional integrated API for creating Flex or Flash applications driven by the Drupal framework. In this tutorial, I'll show you a basic operation for such an application: retrieving a node from Drupal.
Note: This tutorial is based on an example by Alexander Crugnola, in the example, Flex with AMFPHP. Please note that Alexander Crugnola's example is not specific to Drupal.
In order to make the most of this article, you need the following software and files:
Justin Girard began his career as a web developer and designer at The @Home Network developing rich interfaces for broadband cable television, prior to which he spent seven years designing for traditional media and skateboarding professionally. He currently lives and works in New York City.