Archiving and compiling server-side script files Flash Media Server 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. Archiving server-side scripts 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, .js, .asc, or .ase) and any other script files that are referred to in the main script. To package server-side scripts in an archive file: 1. Open your operating system's command shell. 2. Enter far -package with the desired options at the prompt. 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 -files [ ... ] The following table describes the command-line options available for the -package command: Option -> Description -archive -> Specifies the name of the archive file; the archive file has a .far file extension. -files Specify the list of files to be included in the archive file. This option takes a minimum of one file.
|
My Blog Title
|