MACROMEDIA FLASH MEDIA SERVER 2-MANAGING FLASH MEDIA SERVER Manual page 83

Managing flash media server
Table of Contents

Advertisement

For example, given the previous XML fragment, the following
trace("I am " + application.config.user_name + " and I work in the " +
application.config.dept_name + " department.");
trace("I am " + application.config["user_name"] + " and I work in the " +
application.config["dept_name"] + " department.");
The output from either statement would be as follows:
I am jdoe and I work in the engineering department.
As a second example, assume that the environment variable
, and you have defined a symbol named
"jsmith01"
as follows:
<Root>
<Symbols>
<HELLO>World</HELLO>
</Symbols>
</Root>
In addition, the following XML appears in the Application.xml file:
<Application>
<JSEngine>
<config>
<foo>${%COMPUTERNAME%}</foo>
<hello>${HELLO}</hello>
</config>
</JSEngine>
</Application>
Then in a server-side script, the following
trace("My computer's name is: " + application.config.foo);
trace("Hello " + application.config.hello);
The output would then be as follows:
My computer's name is: jsmith01
Hello World
In Flash Media Server 2, the output of
management console and the application log file.
trace()
trace()
Configurable application object properties for server-side scripting
statements are valid:
trace()
COMPUTERNAME
in the substitution.xml file,
HELLO
statements would be valid:
statements is displayed in the
is equal to
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash media server 2

Table of Contents