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.

View comments on LiveDocs