
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.
Adobe Flex 2 features empower developers to create rich Internet applications (RIAs). One of the most important features provided by Flex 2 is data access. Flex and PHP provide a unique and powerful RIA development combination. In this article, you will learn how to call PHP remote objects by using the RemoteObject and Flex's remote procedure call (RPC) service.
The first step is to understand the basics of RPC services and how SabreAMF—one of three current PHP projects that support Action Message Format (AMF)—uses AMF to allow access to PHP remote objects. You will learn how to create the Flex services configuration file and connect to a custom gateway built on top of SabreAMF.
In the final step, you will create the Flex client application that returns the data from the remote PHP service class.
Renaun Erickson is a RIA developer specializing in Flex, ColdFusion, and PHP. He is a Flex Adobe Community Expert and is active in the community through renaun.com/blog/, as well as the Las Vegas Adobe User Group. When not programming, Renaun enjoys driving over big rocks with his Jeep and spending time with his family.