Addapp() - MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Reference

Server management actionscript language reference
Table of Contents

Advertisement

Example
The following three examples show how you can specify parameters in a call to the
command:
/* Adds a server administrator named "GLee" with password "boat4907" */
nc.call("addAdmin", new onAddAdmin(), "GLee", "boat4907", "server");
/* Adds a virtual host administrator named "ChrisM" with password "tree2981"
*/
nc.call("addAdmin", new onAddAdmin(), "ChrisM", "tree2981");
/* Adds a virtual host administrator "DHong" with password "wate3235" */
/* for vhost tree.oak.com */
nc.call("addAdmin", new onAddAdmin(), "DHong", "wate3235", "_defaultRoot_/¬
tree.oak.com");

addApp()

Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
addApp(app_name)
Parameters
A string that contains the name of the application to be added.
app_name
Returns
If the call succeeds, the server sends a reply information object with a
and a
property of
status
code
If the call fails, the server sends a reply information object with a
and a
property of
code
Some objects might also have a
cause of the failure.
Description
Adds a new application to the virtual host by creating the required directory for the new
application in the directory tree. Once the directory for the new application is created, you (or
another administrator with file system access) can put any required server-side scripts in the
directory. The client-side code uses the new application directory in the URI parameter of the
NetConnection.Connect
14
Server Management ActionScript Language Reference
NetConnection.Call.Success
NetConnection.Call.BadValue
description
call.
.
level
or a more specific value, if available.
property that contains a string describing the
addAdmin
property of
level
property of
error

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents