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

112 Chapter 6: Using Flash Remoting with ColdFusion MX
"http://localhost/flashservices/gateway",
null,
"httpFuncs",
null,
null);
// call service method - basicGet()
var pc:PendingCall = myHttpService.basicGet("http://examples.macromedia.com/
flashservices/gateway");
// specify result and fault handler functions
pc.responder = new RelayResponder(this, "basicGet_Result", "basicGet_Fault");
// display returned result
function basicGet_Result(result:ResultEvent):Void
{
myDisplayScreen.text = result.result;
}
The CF.http() function returns an object that contains properties (also known as attributes) that
you reference to access the contents of the file returned, header information, HTTP status codes,
and so on. The following table shows the properties available:
Property Description
Text A Boolean value that indicates whether the specified URL location contains text
data.
Charset The character set used by the document specified in the URL.
HTTP servers normally provide this information, or the character set is specified
in the
charset parameter of the Content-Type header field of the HTTP protocol.
For example, the following HTTP header specifies that the character encoding is
EUC-JP:
Content-Type: text/html; charset=EUC-JP
Header Raw response header. For example, macromedia.com returns a header similar to
this one:
HTTP/1.1 200 OK
Date: Mon, 04 Mar 2002 17:27:44 GMT
Server: Apache/1.3.22 (Unix) mod_perl/1.26
Set-Cookie: MM_cookie=207.22.48.162.4731015262864476;
path=/; expires=Wed, 03-Mar-04 17:27:44 GMT;
domain=.macromedia.com
Connection: close
Content-Type: text/html
Filecontent File contents, for text and MIME files.
Mimetype MIME type. Examples of MIME types include text/html, image/png, image/gif,
video/mpeg, text/css, and audio/basic.