User Guide

Table Of Contents
143
CHAPTER 8
Using Flash Remoting for Microsoft .NET
Macromedia Flash Remoting for Flash MX 2004 ActionScript 2.0 for Microsoft .NET is an
ASP.NET web application that enables Flash applications to access and invoke ASP.NET pages,
ADO.NET data, web services, and assemblies from ActionScript.
This chapter contains the following sections:
“Flash Remoting for Microsoft .NET” on page 143
“Calling ASP.NET pages from Flash” on page 147
“Using ADO.NET objects with Flash Remoting” on page 153
“Calling web services from Flash” on page 156
“Calling ASP.NET assemblies from Flash” on page 159
“Viewing Flash Remoting log entries” on page 162
Flash Remoting for Microsoft .NET
Macromedia Flash Remoting exposes ASP.NET technologies as remote services, which are
accessible through ActionScript functions to Flash applications. A variety of Microsoft .NET
technologies can serve as remote services, including ASP.NET pages, web services, and assembly
methods. A Flash developer writes ActionScript that uses a library of functions to connect to a
remote .NET server, get a reference to the remote service, and invoke the functions of the remote
service.
To transport messages, Flash Remoting uses a binary message format called Action Message
Format (AMF) delivered over HTTP and modeled on the Simple Object Access Protocol (SOAP)
used in web services implementations. AMF is smaller and faster than standard SOAP, and event
driven. It lets you send a variety of data types, including record sets, primitives such as integers,
strings, XML documents, and dates across the Internet using HTTP.
The Flash Remoting gateway acts as a front controller on the ASP.NET runtime program that
handles the conversion of data types from ActionScript to the .NET Common Language
Runtime (CLR) and so on. When the gateway receives a service request, the request passes
through a set of filters that handle serialization, logging, and security before arriving at a service
adapter designed to handle the service and invocation type.