User Guide
Table Of Contents
- Contents
- About Flash Remoting
- Getting Started
- Using Flash Remoting ActionScript
- Using the RemotingConnector component (Flash Professional only)
- Using Flash Remoting Data in ActionScript
- About Flash Remoting and data types
- Understanding Action Message Format
- Converting from ActionScript to application server data types
- Converting from application server data types to ActionScript
- ColdFusion to ActionScript data conversion issues
- About working with objects
- About working with RecordSet objects
- About working with XML
- The NetConnection Debugger
- Using Flash Remoting with ColdFusion MX
- Using Flash Remoting for Java
- About Flash Remoting for Java
- Calling Java classes or JavaBeans from ActionScript
- Calling Enterprise JavaBeans (EJBs) from Flash
- Calling servlets and JSPs from Flash
- Calling JMX MBeans from Flash (JRun only)
- Calling server-side ActionScript from Flash (JRun only)
- Handling function results in ActionScript
- Using Flash Remoting with JRun security
- Passing XML objects between Flash and Java
- Viewing Flash Remoting log entries
- Using Flash Remoting for Microsoft .NET
- Flash Remoting for Microsoft .NET
- Calling ASP.NET pages from Flash
- Making an ASP.NET page available to Flash Remoting
- Getting a reference to an ASPX-based service in ActionScript
- Invoking ASPX pages in ActionScript
- Using the Flash Remoting custom server control in ASPX pages
- Using the Flash Remoting namespace in code-behind files
- Using ASP.NET state management with Flash Remoting
- Using ASP.NET exception handling
- Using ADO.NET objects with Flash Remoting
- Displaying a RecordSet object in Flash with ActionScript
- Calling web services from Flash
- Calling ASP.NET assemblies from Flash
- Viewing Flash Remoting log entries
- Using NetServices and Connection Classes
- Index

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.