Preview of Development Tasks

The following checklist provides a high-level overview of the tasks you must complete for any application to work with Flash Media Server. Each of these tasks is discussed in this chapter in more detail, so you should read this entire chapter.

To create and deploy a Flash Media Server application, complete the following tasks:

  1. Select a name for your new application (for example, my_app) and register the application with the server: in the Flash Media Server applications directory, create a new directory with the name of your application.

    This name is your registered application name. The directory is your registered application directory.

  2. In Flash, create a FLA file that includes a new NetConnection statement with the registered application name and, if applicable, the application instance in the URI.

    For example:

    my_nc = new NetConnection();
    my_nc.connect("rtmp://myDomain.com/registered_app_name");
    

    This statement connects the client to the registered_app_name application.

  3. Save the FLA file with your registered application name.

    You can store the FLA file anywhere; it is a source file used to create the SWF and is not part of the deployed application.

  4. If you have a script file that contains server-side ActionScript, put it in the registered application directory in the Flash Media Server applications directory or a /scripts directory, which you create, within the registered application directory.

    Your server-side script file can be named main.asc or registered_app_name.asc.

  5. Publish the SWF file for your application in a directory accessible to your clients but that Flash Media Server does not use.

    For example, you could put your SWF file in the web root directory that will serve your application to your clients, or you could e-mail the SWF file to your clients and store the SWF file in some other directory.

Depending on your application, additional steps are required; however, these steps are necessary for all applications, regardless of their functionality.

TIP

 

Macromedia recommends that you use all lowercase letters and no spaces when you name directories and files used with Flash Media Server and its applications. This practice helps to ensure that, during development, your applications will work if you move files to different computers on different platforms.

The rest of this chapter describes what's involved in setting up your applications, introduces the objects and files used in Flash Media Server applications, and shows you how to create and connect to your first Flash Media Server application.


 

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

Current page: http://livedocs.adobe.com/fms/2/docs/00000024.html