Application Server Connectivity > Connecting through Flash Remoting > Re-creating the samples

 

Re-creating the samples

The samples assume you're using the Flash MX authoring environment on the same local host that is running the Flash Communication Server and ColdFusion MX. Files associated with the samples (FLA, SWF, HTML, and ASC) are located in subdirectories of the /flashcom_help/help_collateral directory under the installed Macromedia Flash MX authoring directories or the Flash Communication Server installation directory.

As with the samples in earlier chapters, you'll create the user interface in a FLA file using the Client-Side Communication ActionScript. The client-side ActionScript in the FLA file will invoke a method in the server-side ASC file that you will also create.

To add Flash Remoting services to your application, you'll use server-side ActionScript in an ASC file that you will create. This server-side code will act as a client to the Flash Remoting service by invoking methods in the ColdFusion CFC file, which you will also create.

You'll place the FLA and ASC files in your application directory, and place in that same directory the netservices.asc file that enables NetServices. You'll place the CFC or CFM file in the default directory where you deploy your other ColdFusion script files.

Finally, you'll test your movie by publishing the SWF file and running it. Make sure the Flash Communication Server and the ColdFusion MX server are running before you attempt to test your sample.

Note: The samples use RTMP to connect to the application servers. If you want to connect using a secure connection, use HTTPS. Server-to-server connections are not possible using Macromedia RTMP.