Storing your application's server-side script files

In most of your applications, you're likely to use server-side scripting. You create the server-side script file for your application in the Flash ActionScript editor or in a JavaScript text editor. Name the script file main.asc or main.js or registered_app_name.asc or registered_app_name.js, where registered_app_name is the name of the registered application directory and the application itself. Save the script file in your registered application directory. For example, if you have an /applications/chat_app directory for your chat application, you could name your server-side script file chat_app.asc and place it in the chat_app directory. Alternatively, you can place your server-side scripts in a subdirectory named scripts in the registered application directory (/applications/chat_App/scripts).

NOTE

 

To simplify deployment, Flash Media Server includes an archive compiler utility (far.exe) that you can use to package your server-side script files in a single archive file. To speed up loading time, the utility also lets you compile script files to binary format. For more information, see Archiving and compiling server-side script files.


 

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

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