MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Manuale Utente Pagina 79

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 240
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 78
Symbolic text substitutions 79
Symbolic text substitutions
Flash Media Server supports the use of symbolic text substitutions in all tags in the servers
XML configuration files. When you specify a symbol in any configuration tag, Flash Media
Server will substitute the string you have mapped to that symbol when it reads the
configuration file. After you have configured the server the first time, future edits will be
easier: you can keep all the strings and symbol mappings in a single file instead of editing all of
the server’s separate configuration files.
Making a substitution
To support the symbol-to-string mappings, create a file named substitution.xml. This files
name must be all lowercase, since filenames are case-sensitive on Linux-based operating
systems, but not on Windows platforms.
The substitution.xml file is a place to describe the symbol-to-string mappings that you
defined. The Flash Media Server 2 installer also defines a few of these mappings during the
installation process, and it stores them in a separate file called fms.ini. The server looks for
both of these files in the conf directory located at the same level as the Flash Media Server
executable files. You can also choose to define these mappings in other files that you create,
and create references to these custom files in the substitution.xml file.
The substitution.xml file defines text-to-symbol mappings using the following form:
<Root>
<Symbols>
<SymbolName>StringToMapTo</SymbolName>
<SymbolName>StringToMapTo</SymbolName>
</Symbols>
</Root>
Within the Symbols tag, create child tags that describe the symbol names. Place the string to
be mapped to the symbol within the opening and closing child tag.
For example, this tag maps the symbol
VIR_DIR to the string "c:\streams":
<VIR_DIR>c:\streams</VIR_DIR>
In the substitution.xml file, this tag would be a child of the Symbols tag, as in the following
XML fragment:
<Root>
<Symbols>
<VIR_DIR>c:\streams</VIR_DIR>
</Symbols>
</Root>
Vedere la pagina 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 239 240

Commenti su questo manuale

Nessun commento