Flash Media Server |
|||
| Developing Media Applications > Application Development Tips and Tricks > Archiving and compiling server-side script files | |||
Flash Media Server includes a command-line archive compiler utility (far.exe) that lets you package all your server-side scripts into one archive file, much like a ZIP file, to simplify deployment. You can also use the archive compiler utility (called FAR) to compile server-side script files to bytecode (with the file extension .ase) to speed up the time required to load an application instance.
A large application can contain multiple server-side script files stored in different locations. Some files are located in the application directory and others are scattered in the script library paths that are defined in the server configuration file. To simplify deployment of your media application, you can package your server-side .js, .asc, and .ase files in a self-contained Flash Media Server Archive file (.far).
The FAR file is a package that includes the main script file (which is either main.js, main.asc, main.ase, <appname>.js, <appname>.asc, or <appname>.ase) and any other script files that are referred to in the main script.
|
NOTE |
|
If the main script refers to scripts in a sub-directory, the hierarchy must be maintained in the archive file. To maintain this hierarchy, Macromedia recommends that you run the FAR utility in the same directory where the main script is located. |
The syntax for running the archive compiler utility to create a script package is as follows:
c:\> far -package -archive <archive> -files <file1> [<file2> ... <fileN>]
The following table describes the command-line options available for the -package command:
|
Option |
Description |
|---|---|
|
|
Specifies the name of the archive file; the archive file has a .far file extension. |
|
|
Specify the list of files to be included in the archive file. This option takes a minimum of one file. |
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/fms/2/docs/00000109.html