Adobe 65029121 - Flash Media Streaming Server Developer's Manual page 14

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

RootInstall/applications/YourApplicationName/scripts
RootInstall/applications/YourApplicationName/YourInstanceName/
RootInstall/applications/YourApplicationName/streams/YourInstanceName/
By default, Flash Media Server searches the above directories when an application is requested.
Note: To replace a running application, copy the new files over, then use the Administration Console to restart the appli-
cation.
For example, to run the Streams sample in the RootInstall/documentation/samples directory, you first need to copy
the Streams folder to the applications directory, as follows: RootInstall/applications/Streams. To run the Stream-
Length sample, copy the StreamLength folder to the application directory, as follows: RootInstall/applica-
tions/StreamLength. Ensure the folder contains the main.asc file and the streams subdirectory. (The AS and FLA are
source files and do not need to reside in this directory, and the SWF file can be run from anywhere.)
Packaging server-side files
Flash Media Server includes a command-line archive compiler utility, far.exe, which lets you package server-side
scripts into a FAR file, which is an archive file like a ZIP file, to simplify deployment. You can also use the archive
compiler utility to compile server-side script files to bytecode (with the file extension .ase) to speed 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 configu-
ration 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 (a FAR file).
The FAR file is a package that includes the main script file (which is either main.js, main.asc, main.ase, applica-
tionName.js, applicationName.asc, or applicationName.ase) and any other script files that are referred to in the main
script.
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
Option
-archive archive
-files file1 [ file2 ... fileN ]
Note: If the main script refers to scripts in a subdirectory, the hierarchy must be maintained in the archive file. To
maintain this hierarchy, Adobe recommends that you run the FAR utility in the same directory where the main script is
located.
Copy client-side files to a web server
Copy SWF files to a web server.
Description
Specifies the name of the archive file, which has a .far extension.
Specifies the list of files to be included in the archive file. At least one
file is required.
.
far -package
FLASH MEDIA SERVER
11
Developer Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server

Table of Contents