Contents > Developing ColdFusion MX Applications > Using Server-Side ActionScript > About the Cf.query function and data sources PreviousNext

About the Cf.query function and data sources

You use the CF.query function to populate Macromedia Flash MX movie elements with data retrieved from a Macromedia ColdFusion MX data source. To use the CF.query function you do the following:

To pull data into your Flash MX movie from a ColdFusion MX data source:

  1. Create a server-side ActionScript file that performs queries against a ColdFusion MX data source.
  2. Write ActionScript code in your Flash MX movie that references your ActionScript file (.asr) on the ColdFusion server.

You create server-side ActionScript to execute the query and return the data in a record set to the client--your Flash MX 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 Flash MX movie.

Note: Client-side ActionScript files use the .as extension. Server-side ActionScript files use the .asr (ActionScript remote) extension.


Contents > Developing ColdFusion MX Applications > Using Server-Side ActionScript > About the Cf.query function and data sources PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/ssacti15.htm