Remoting: More Than Just a Name
Flash Remoting is a technology that resides on the remote application server—hence the name. It acts as a gateway to the server and translates client calls from a Flash movie into calls that the server can understand. It is included with ColdFusion MX Server and JRun 4 and offered as an add-on for ASP.NET and J2EE-compatible servers, such as IBM WebSphere. Third-party developers have built versions for PHP and Perl as well.
Prior versions of Flash were able to communicate with a server in a limited fashion using name/value variable pairs or XML. Flash Remoting offers the following advantages over these methods:
A Flash movie, through the server-side Flash Remoting gateway, can call server-side methods directly, not merely pass values or files back and forth.
The client- and server-side XML or name/value parsing required for Flash 5 interaction is virtually eliminated with Flash Remoting, although it can still be used effectively in some situations.
Because the server-side Flash Remoting gateway can communicate directly with the Flash movie, complex objects, such as arrays, structures, and recordsets, can be transferred without serialization/deserialization.
Also, because the server contains functionality that can be accessed directly (such as calling a server-side method by name from within the Flash movie), the Flash code can be more concise. Recordsets can be loaded into Flash movies using a RecordSet object, making it easy to sort and page through results ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access