Using The Flash Remoting Service With Server-Side Actionscript - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

In this example, the
description of the component method.
Save the file.
2
Open the Flash MX authoring environment, and open the Service Browser.
3
If not already present, add your Flash Remoting service URL, such as http://localhost:8500/
4
flashservices/gateway.
To add the flashComponent service, enter helloExamples.flashComponent.
5
When you click the getTime folder, the description appears in the Service Browser as shown in
6
the following figure:
.

Using the Flash Remoting service with server-side ActionScript

The ability to create server-side ActionScript provides a familiar way for Flash developers to access
ColdFusion query and HTTP features without learning CFML. You can place ActionScript files
(*.asr) on the server that you want to call from the Flash application anywhere below the web
server's root directory. To specify subdirectories of the webroot or a virtual directory, use package
dot notation. For example, in the following assignment code, the stockquotes.asr file lives in the
mydir/stock/ directory:
stockService = gatewayConnnection.getService("mydir.stock.stockquotes", this);
You can also point to virtual mappings, such as
is a virtual mapping and
cfsuite
and
functions give you a well-defined interface for building SQL queries and HTTP
CF.http
operations of ColdFusion.
648
Chapter 29: Using the Flash Remoting Service
attribute of the
description
asr.stock
tag supplies a short text
cffunction
cfsuite.asr.stock.stockquotes,
is a subdirectory of that mapping. The
where
CF.query

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents