MACROMEDIA FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 Use Manual page 19

Using flash remoting for flash mx 2004 actionscript 2.0
Table of Contents

Advertisement

Building the remote service
Flash Remoting supports Java, ASP.NET, and ColdFusion-based remote services. For a simple
Hello World application, the following table lists the application server code by platform and
specifies where to save the file to make it available to Flash Remoting.
Application
Application server code
server
ColdFusion MX
<cfset flash.result = "Hello from
JRun 4
package com.remoteservices;
import java.io.Serializable;
public class FlashJavaBean
}
ASP.NET
<%@ Register TagPrefix="Macromedia"
<%@ Page language="c#" debug="true" %>
<Macromedia:Flash ID="Flash"
Hello from .NET!
</Macromedia:Flash>
For more information about application server-specific code, see the following chapters:
Chapter 6, "Using Flash Remoting with ColdFusion MX," on page 97
Chapter 7, "Using Flash Remoting for Java," on page 119
Chapter 8, "Using Flash Remoting for Microsoft .NET," on page 143
Calling the remote service from Flash using Flash Remoting ActionScript
To build a Flash application that uses Flash Remoting, you write ActionScript in the Flash
authoring environment to connect to the remote service and call a service function.
To build a Flash application that calls remote services using Flash Remoting:
In the Flash authoring environment, create a new Flash file and save it as serviceTest.fla.
1.
Drag the RemotingClasses library onto the Stage as described in
2.
on page
18.
In the Document window, insert a text field.
3.
ColdFusion MX!">
implements Serializable {
private String message;
public FlashJavaBean() {
message = "Hello from Java!";
}
public String helloWorldJava() {
return message;
}
Namespace="FlashGateway"
Assembly="flashgateway" %>
runat="server">
File location
Save the ColdFusion page as
helloWorld.cfm in a folder named
remoteservices under your web root.
Save the compiled JavaBean class
file to classes/com/remoteservices
folder under the SERVER-INF
directory.
Save the ASPX page as
helloWorldNET.aspx in the
flashremoting directory under your
web root.
"Connecting to a service"
Building Flash applications with Flash Remoting
19

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH REMOTING MX-USING FLASH REMOTING FOR FLASH MX 2004 ACTIONSCRIPT 2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash remoting mx

Table of Contents