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

Viewing Flash Remoting log entries 141
flashtestService.testDocument(xmlDocument);
}
Note: You can also create an XML document object in ActionScript by passing a string
representation of the XML to the
new XML(source) constructor. For more information, see the Flash
documentation set.
Returning an XML object from Java to Flash
The JavaBean method discussed in the previous section returns an org.w3c.dom.Document
object as follows:
public Document testDocument(Document doc)
{
return doc;
}
Flash Remoting converts the returned org.w3c.doc.Document object to an ActionScript result of
type XML object, which can be used in a result handler function as follows:
function testDocument_Result(result:ResultEvent):Void
{
output.text = result.firstChild.attributes["message"];
}
When the function above is called, the text contained in the first child element of the XML
document root is displayed in a Flash dynamic text field called
output. The text matches
whatever text the user initially entered in the Flash text field called
input.
Viewing Flash Remoting log entries
Flash Remoting writes messages to standard out and standard error, which appear in the following
log files:
Flash Remoting uses a default logger on all Java application servers other than JRun. You can set
the default logger’s log level using the
LOG_LEVEL context-parameter in the web.xml file of the
Flash Remoting web application. Valid values are None, Error, Warning, Information, and
Debug. By default, only errors are logged. The values are not case sensitive.
Application server Log location
Sun One Web Server error file in the sunone_root/Servers/https-server_name/logs directory
WebSphere servername_stdout and servername_stderr files in the websphere_root/
AppServer/logs directory
JRun servername_event files in jrun_root/logs directory