Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 698

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
For more information, see
"Using the CF.query
Using results returned by the CF.http function
The
server-side ActionScript function returns data as simple text. You write server-side functions that
CF.http
reference the properties available in the object returned by the
content of the retrieved file, HTTP status codes, the MIME type of the returned file, and so on. On the client side, you
create return functions to handle data returned by the
text data.
For more information, see
"Using the CF.http
Global and request scope objects
Global and request scope objects are implicitly available in all server-side ActionScript. The following table describes
these scope objects:
Scope name
Type
config
Global
application
Global
request
Request
response
Request
For more information about these scope objects, see the documentation on the javax.servlet class at
http://java.sun.com.
About the CF.query function and data sources
You use the
function to populate SWF movie elements with data retrieved from a ColdFusion data source.
CF.query
To use the
function you do the following:
CF.query
Pull data into your SWF movie from a ColdFusion data source
1
Create a server-side ActionScript file that performs queries against a ColdFusion data source.
Write ActionScript code in your SWF movie that references your ActionScript file (.asr) on the ColdFusion server.
2
You create server-side ActionScript to execute the query and return the data in a record set to the client—your SWF
movie. You can use methods in the RecordSet ActionScript object on the client to manipulate data in the record set
and present data in your SWF movie.
Note: Client-side ActionScript files use the .as extension. Server-side ActionScript files use the .asr (ActionScript remote)
extension.
function" on page 694.
CF.http
function. You write these functions to handle simple
CF.http
function" on page 700.
Description
Initialization information for the server-side ActionScript adapter.
Class:
javax.servlet.ServletConfig
The context for the current web application. The context defines methods that provide, for
example, the MIME type of a file that can be used to write to a log file. There is one context per
web application.
Class:
javax.servlet.ServletContext
An object containing client request information. The object provides data, including
parameter name and values, attributes, and an input stream.
Class:
HttpServletRequest
(subtype of
An object to assist in sending a response to the client. It provides HTTP-specific functionality
in sending a response. Do not use the OutputStream or PrintWriter to send data back to the
client.
Class:
HttpServletResponse
(subtype of
Last updated 1/20/2012
function. These properties store the file
javax.servlet.ServletRequest
javax.servlet.ServletResponse
693
)
)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents