90
Application Development Tips and Tricks
To compile server-side scripts to bytecode:
1.
Open your operating system’s command shell.
2.
Enter
far -compile
with the desired options at the prompt.
The syntax for running the archive compiler utility to create a script package is as follows:
c:\> far -compile [-v <version>] [-fv <version>] [-e <date>] [-hdr
<header>] [-n] [-h [<command>]] <file1> [<file2> ... <fileN>]
The following table describes the command-line options available for the
-bytecode
command:
NO
TE
Add the location of the FAR utility to the PATH environment variable. This addition
lets you run the FAR utility without having to specify the full path to the executable.
Option
Description
-v <version>
Optional. Specifies the version that is encoded into the version
field of the 12-byte signature. If unspecified, this option defaults
to 1.0. This option is also added as an optional header that looks
like, "version:1.0\n".
-fv <version>
Optional. Specifies the recommended version of Flash Media
Server to use with this file. This version number is encoded into
the fms_version field of the 36-byte header. If unspecified, this
defaults to 1.6. This option is also added as an optional header
that looks like, "fcsver:1.6\n".
Note:
This option adds content to the ASE file, but the Flash
Media Server does not use the content at this time.
-e <date>
Optional. Specifies the expiration date of this file. The date is
specified as mm/dd/yyyy. After this date, the file is no longer
readable. If unspecified, this option defaults to 0, which means
the file will never expire. This option may be useful if you want to
give the file out for a time-limited trial. If set (for example, 12/31/
2003), this date is also added as an optional header and the
date is formatted to look like, "expires:Sat Dec 31 00:00:00
2003\n".
Note:
This option adds content to the ASE file, but the Flash
Media Server does not use the content at this time.
-hdr <header>
Optional. Specifies a user-defined header to embed in the
output file. A header is specified in the form Name:Value. To
specify more than one header, you must specify the header
using another -h <header> option. For example, casc -h
name1:value1 -h name2:value2.
Note:
This option adds content to the ASE file, but the Flash
Media Server does not use the content at this time.
Содержание FLASH MEDIA SERVER 2-DEVELOPING MEDIA
Страница 1: ...Developing Media Applications ...
Страница 6: ...6 ...
Страница 10: ...10 About This Manual ...
Страница 36: ...36 Flash Media Server Architecture ...
Страница 80: ...80 Debugging and Monitoring Applications ...
Страница 106: ...106 Application Development Tips and Tricks ...
Страница 114: ...114 ...