Using Naming Conventions - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

To install and test the server-side ActionScript file, do the following:
Locate the flashcom application directory.
1
During installation, you can choose either a Developer Install or a Production Install of the
product. If you choose Developer Install, you can run the samples and test your applications
from the \flashcom\applications directory under the directory you specify. For convenience
during development, client-side application files (SWFs and HTMLs) are stored in the same
directory with your server-side application files (ASCs, FLVs, FLAs).
When you deploy applications, you'll need to separate client files from your server-side source
files. While your SWF and HTML files should be accessible through a web server, your server-
side ASC files, your audio/video FLV files, and your ActionScript FLA source files should not
be accessible to a user browsing your Web site. You can either install the server again on your
production machine and choose Production Install, or you can change the configuration
settings in the administration XML files as described in the Managing Flash Communication
Server manual.
If you choose Production Install, you can specify both the location of your client-side
application files (SWFs and HTMLs) and the location of your server-side application files
(ASCs, FLVs, and FLAs). The server will look for your client-side files under
\flashcom\applications in the Web server's root directory and will look for your server-side
application files under \applications under the directory you specify.If you did not accept the
default installation settings and you aren't sure where the application directory is located, the
location is specified in the
Communication Server MX\conf\_defaultRoot_\_defaultVhost_\. For information about
configuring a different application directory, see Managing Flash Communication Server.
Create a subdirectory in the server-side application directory called appName, where appName
2
is a name you choose as the filename of your Flash Communication Server application. You
must pass this name as a parameter to the
ActionScript.
Place the main.asc file in the appName directory or in a subdirectory called scripts in the
3
appName directory.
Open the Flash application (the SWF) in a browser or in the stand-alone Flash Player.
4
The SWF must contain ActionScript code that passes appName to the
NetConnection object, as shown in the following example:
nc = new NetConnection();
nc.connect("rtmp://flashcomsvr.mydomain.com/myFlashComAppName");
Note: You can use the Communication App inspector or the Administration Console to check if the application
loaded successfully.

Using naming conventions

When you write server-side ActionScript code, there are certain naming conventions that you
must use to name your applications, methods, properties, and variables. These rules let you
logically identify objects so your code executes properly.
6
tag of the Vhost.xml file, which is located at \Flash
<AppsDir>
NetConnection.connect
method in the client-side
method of the
connect

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash communication server mx

Table of Contents