View comments | RSS feed

Connecting to the Flash Remoting service

Before you can use functions defined in your server-side ActionScript files, you must connect the Macromedia Flash MX movie to the server-side Flash Remoting service.

To create a Flash Remoting service connection:

  1. Include the necessary ActionScript classes in the first frame of the Flash movie that will be using server-side ActionScript functions.
    1. Use the following command to include the NetServices class:
    2. #include "NetServices.as"
      
    3. (Optional) Use the following command to include the NetDebug class:
    4. #include "NetDebug.as"
      

      For more information about the NetDebug and RecordSet classes, see Using Flash Remoting MX.

  2. Since the Flash Remoting service serves as a broker for calls to server-side ActionScript functions, you must identify the Flash Remoting service URL as an argument in the NetServices.setDefaultGatewayUrl function. For example:
    NetServices.setDefaultGatewayURL("http://localhost:8500/flashservices")
    

    You must specify a server hostname. The default port number for the Flash Remoting service is 8500.

  3. Create the gateway connection using the NetServices.createGatewayConnection function; for example:
    gatewayConnection = NetServices.createGatewayConnection();
    

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

Version 7

Comments


Pedro Claudio said on Apr 11, 2005 at 9:58 AM :
See, my solution on Flash Forms
http://www.mxstudio.com.br/views.tutorial.php?act=view&cid=7&aid=477

 

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

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001492.htm