Test An Application - Adobe 65029121 - Flash Media Streaming Server Developer's Manual

Developer's guide
Hide thumbs Also See for 65029121 - Flash Media Streaming Server:
Table of Contents

Advertisement

RootInstall/applications/sudoku
RootInstall/applications/sudoku/scripts
Client and application objects
Server-side scripts have access to two special objects, the
connects to an application on Flash Media Server, the server creates an instance of the server-side Client class to
represent the client. An application can have thousands of clients connected. In your server-side code, you can use
the
object to send and receive messages to individual clients.
client
Each application also has a single
object represents the application instance. You can use it to accept clients, disconnect them, shut down
application
the application, and so on.
Writing double-byte applications
If you use Server-Side ActionScript to develop an application that uses double-byte text (such as an Asian language
character set), place your server-side code in a main.asc file that is UTF-8 encoded. This means you'll need a
JavaScript editor, such as the Script window in Flash or Dreamweaver, that encodes files to the UTF-8 standard.
Then, you can use built-in JavaScript methods, such as
locale encoding for that system.
Some simple text editors might not encode files to the UTF-8 standard. However, some editors, such as Microsoft
Notepad for Windows XP and Windows 2000, provide a Save As option to encode files in the UTF-8 standard.
Set UTF-8 encoding in Dreamweaver
Check the document encoding setting by selecting Modify > Page Properties, then Document Encoding. Choose
1
Unicode (UTF-8).
Change the inline input setting by selecting Edit > Preferences (Windows) or Dreamweaver > Preferences (Mac),
2
and then click General. Select Enable Double-Byte Online Input to enable double-byte text.
Use double-byte characters as method names
Assign method names using the object array operator, not the dot operator:
// This is the CORRECT way to create double-byte method names
obj["Any_hi_byte_name"] = function(){}
// This is the INCORRECT way to create double-byte method names.
obj.Any_hi_byte_name = function() {}

Test an application

Test and debug a server-side script
To test a server-side script, use
Use the Administration Console to start, stop, reload, and view applications, with Start > All Programs > Adobe Flash
Media Server 3 > Flash Media Administration Console.
When your client connects to the server, that application is loaded and can be seen in the Administration Console.
To load an application directly from the Administration Console, select from the New Instance list of available appli-
cation names. You can also stop an application or reload it—in either case, all clients are disconnected.
client
object, which is an instance of the server-side Application class. The
application
Date.toLocaleString()
statements to monitor each processing point.
trace()
object and the
application
, which converts the string to the
FLASH MEDIA SERVER
Developer Guide
object. When a client
8

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 65029121 - Flash Media Streaming Server and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server

Table of Contents