Flash Media Server |
|||
| Developing Media Applications > Getting Started > Deploying applications and application instances > Storing server-side and client-side files | |||
The default location for server-side application files is C:\Program files\Macromedia\Flash Media Server 2\applications on Windows or /opt/macromedia/fms/applications on UNIX. This location is referred to as the applications directory. When you create a media application, you must create a registered application directory, which is a subdirectory for your application in the applications directory.
You can store your client-side files (SWF and HTML) in any location; most likely, you will store them in your web server publishing directory. The FLA files for your applications can remain with the SWF and HTML files until deployment; at production time, remove the FLA files and place them in a secure location.
For organizational purposes during your development work, it might be convenient to store all of our client and server application files (FLA, SWF, HTML, or ASC) in one subdirectory. When you deploy your application, you can place your SWF and HTML files in any location. However, the registered application directory must remain on the Flash Media Server server, along with any ASC, FSO, and FLV files that the application uses. The server-side files (your ASC, FLV, and FSO files) and your FLA source file should not be in your web root directory when you deploy the server and applications. Only your SWF and HTML files should remain inside the web root directory.
In any case, you must create a registered application directory that has the same name as the application you connect to when you issue the NetConnection.connect() command.
For example, suppose you have an application called chat_App, as the following example shows:
NetConnection.connect("rtmp://myServer.myDomain.com/chat_App")
You must create a subdirectory named chat_App in the applications directory. Suppose also that your application uses some server-side scripting, stored in a file called chat_App.asc. You must place the chat_App.asc file in this same directory.
|
NOTE |
|
You must create a registered application directory that matches your application name even if you have no server-side script files to place there. This is because Flash Media Server stores in your registered application directory any stream or shared-object files that your application creates (see Coding conventions). Also, the existence of this directory tells Flash Media Server that the application is authorized and that users can connect to instances of this application. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000026.html