MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifications

Browse online or download Specifications for Servers MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY. MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 369
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Flash Communication Server

macromedia™®Getting Started withFlash Communication ServerMacromedia Flash™ Communication Server MX

Page 2

Chapter 210System requirements for the Flash PlayerBecause the client side of a Flash Communication Server application runs in Flash Player 6, you (an

Page 3

Chapter 122To test your sample application:1 Choose File > Publish Settings, select Flash and HTML, click Publish, and then click OK.2 Choose Contr

Page 4

23CHAPTER 2About Flash Communication ServerApplicationsWith a few lines of code, your Macromedia Flash MX application (SWF) can communicate with anoth

Page 5

Chapter 224Passing data between clientsIn Chapter 1, the sample connection application (see “Writing your first application” on page 19) connected to

Page 6 - Chapter 16

About Flash Communication Server Applications 25Tracking client informationYou can use server-side ActionScript to collect and display information reg

Page 7 - • Macromedia Flash books

Chapter 226While you can use the Flash Communication Server server-side scripting language to implement transactions, either internally or by communic

Page 8

About Flash Communication Server Applications 27When the user runs your Flash SWF file and the SWF file connects to the server, the server loads the a

Page 9 - Installation and Workflow

Chapter 228After a successful connection, the client makes a call on the connection. If the client needs a result returned, the client provides a call

Page 10 - Chapter 210

About Flash Communication Server Applications 29Finally, here’s an overview of the remote shared object flow. A Flash client movie subscribes to a rem

Page 11 - Installation and Workflow 11

Chapter 230When designing your application, note the functionality used on both the client and the server. For a description of how to use the client-

Page 12 - Chapter 212

Sample Applications 31CHAPTER 3Sample ApplicationsThis chapter provides examples of a number of Macromedia Flash Communication Server MX programming t

Page 13 - Installation and Workflow 13

Installation and Workflow 11If you choose Production Install, you can specify both the location of your client-side application files (SWFs and HTMLs)

Page 14 - Sends/receives

Chapter 3 32Specifying publishing formats. You should have Flash MX configured to publish both SWF and HTML files. To specify formats to be created du

Page 15 - Installation and Workflow 15

Sample Applications 33Re-creating the sampleThe doc_record.fla file provides the ActionScript for getting a camera, attaching it to a Video object, cr

Page 16 - Chapter 216

Chapter 3 344 In the initStreams function, make a connection to the server. Create the output stream for sending the video data to the server, and the

Page 17 - Installation and Workflow 17

Sample Applications 356 Create the event handler for the Play button that plays the stream recorded on the server.function doPlay() {in_ns.play("

Page 18 - Chapter 218

Chapter 3 362 Open a connection to the server.// Open connection to serverclient_nc = new NetConnection();client_nc.connect("rtmp:/doc_text/room_

Page 19 - Installation and Workflow 19

Sample Applications 37Sample 3: Shared BallThis sample allows users to move a ball around the screen and to watch while other participants move the ba

Page 20 - Chapter 220

Chapter 3 385 When you get a shared object, make sure you connect it to the NetConnection object.// Connect to the shared objectball_so.connect(client

Page 21 - GLOSSARY

Sample Applications 39To create the user interface for this sample:1 In the Flash MX authoring environment, select File > New to open a new file.2

Page 22 - Communication Server

Chapter 3 404 Create the event handler for the Connect button. If the user selected the button when the label was Connect, then connect to the server.

Page 23

Sample Applications 41To write the server-side ActionScript for this sample:1 Create a new file using your server-side ActionScript editor, and write

Page 24

Chapter 21212 Click Finish. The Flash Communication Server service starts up. The server runs as a service, which means it runs in the background and

Page 25

Chapter 3 42About the sampleIn a chat room, you want to view current users dynamically. When users log in to a room, the list should be updated; when

Page 26 - INTRODUCTION

Sample Applications 433 Provide a value for the maximum scrolling of the History text box component.// Set maximum scrollHistory.maxscroll = 1000;4Pre

Page 27 - Additional resources

Chapter 3 449 In the same doConnect function, create the onSync method to handle the change in users. // When the list of users_so is updated, refresh

Page 28 - CHAPTER 1

Sample Applications 4513 Create the setHistory function that the server calls to update the text in the History dynamic text box.// Update the History

Page 29 - Chapter 18

Chapter 3 463 Write the event handler onDisconnect to clean up.application.onDisconnect = function(client){trace("disconnect: " + client.nam

Page 30

Sample Applications 476 To add a Video object to your library, open the Library panel (Window > Library) and add an embedded Video object by select

Page 31 - Chapter 110

Chapter 3 486 Remember to connect the shared object to the NetConnection object.// Connect to the shared objectrec_so.connect(client_nc);7Create an ev

Page 32 - Managing the Server

Sample Applications 499 Create the event handler for the Play button. If the user selects Play, update the button label, create an input stream, and p

Page 33

Chapter 3 50

Page 34 - Managing the Server 13

51CHAPTER 4Application Development Tips and TricksThis chapter is designed to supplement, not replace, application development and best practices reco

Page 35 - • An Application.xml file

Installation and Workflow 13To install the authoring components:1 Locate the FlashComInstaller file.This file is on your installation CD, or you may h

Page 36 - Managing the Server 15

Chapter 452For example, the code below shows how you could create a network connection on the client side, and then make a call to it from the server

Page 37

Application Development Tips and Tricks 53On the server sideOn the server side, you must implement slightly different code, using global instead of _r

Page 38 - Managing the Server 17

Chapter 454Managing bandwidthYou can control the amount of data the server sends to each client by providing an approximate bandwidth capacity. There

Page 39

Application Development Tips and Tricks 55Note: If you are using speakers instead of a headset, you may want to comment out the call to Microphone.get

Page 40

Chapter 456cam.setKeyFrameInterval(5);client_mic.setRate(11);// For demonstration purposes, change size of screenOutput_mc._height = 130;Output_mc._wi

Page 41

Application Development Tips and Tricks 57Writing double-byte applicationsIf you are using server-side ActionScript in a development environment or la

Page 42 - To remove an administrator:

Chapter 458Because shared object and stream names are strings, and both follow the same rules of URI-encoded data, you can define access based on the

Page 43 - Chapter 222

Application Development Tips and Tricks 59In addition to the specific onStatus methods provided for the objects listed above, Flash MX also provides a

Page 44 - Managing the Server 23

Chapter 460Debugging NetConnection.Connect.FailedIf a NetConnection.connect command returns an information object with a code value of NetConnection.C

Page 45 - Chapter 224

Application Development Tips and Tricks 613 From the options menu in the Library panel (Window > Library), select New Symbol, and give it the name

Page 46

Chapter 214How Flash Communication Server worksThe Flash Communication Server platform comprises the server that provides the means of communication a

Page 47 - Directory (port 1935)

Chapter 4626 Copy and paste the following code to the Actions panel for the first frame of the movie:stop();var userAnswer = false;function doRecord()

Page 48 - Deployment: two computers

Application Development Tips and Tricks 63// If the user selects the No button, they// do not want to record. So, set userAnswer// to false, unload th

Page 49 - Chapter 328

Chapter 464In addition, words that are used by ActionScript should never be used as names. Also avoid using variable names of common programming const

Page 50 - About configuration levels

Application Development Tips and Tricks 65• // :TRICKY:Notifies developers that the subsequent code has a lot of interactions. Also advises developers

Page 51 - Chapter 330

Chapter 466This code outputs:77012345In this case, the counter variable on the main Timeline is overwritten by the counter variable within the functio

Page 52

Application Development Tips and Tricks 67The following example demonstrates a correct technique for creating an object, but should be used only when

Page 53 - About the configuration files

Chapter 468Recorded stream filesWhen you use methods that record audio, video, or data streams (for example, NetStream.publish), Flash Communication S

Page 54

Application Development Tips and Tricks 69Persistent local shared objectsYou create persistent local shared objects by using the client-side SharedObj

Page 55 - Chapter 334

Chapter 470Snapshots and thumbnailsThis section compares the techniques for grabbing single frames of video as pictures to use within your application

Page 56

Application Development Tips and Tricks 71The following client-side ActionScript code in doc_snapshot.fla connects to the server and plays camera outp

Page 57 - Chapter 336

Installation and Workflow 15Client connections to Flash Communication Server use the Real-Time Messaging Protocol (RTMP), which, unlike HTTP, provides

Page 58

Chapter 472} else {// Stop publishing recorded streamout_ns.publish(false);// Close the stream so that we can use the same to publish againout_ns.clos

Page 59 - Chapter 338

Application Development Tips and Tricks 73In the following client-side ActionScript code in doc_thumbnails.fla, the server records the incoming stream

Page 60

Chapter 474out_ns.publish("myRecording", "record");Record_btn.setLabel("Stop");recState = 1;} else {out_ns.publish(false

Page 61 - Chapter 340

Application Development Tips and Tricks 75Application objectThis section includes recommendations to help you optimize your use of the server-side App

Page 62

Chapter 476Application.onDisconnectThe server calls the application.onDisconnect method when the NetConnection is closed. You cannot use client.call o

Page 63 - Chapter 342

Application Development Tips and Tricks 77Using one camera in multiple applicationsMultiple applications (SWFs) can use the same camera at the same ti

Page 64

Chapter 478Second, there is a bit of JavaScript you can use in your HTML page to avoid the security problem. Assuming the movie uses a fully qualified

Page 65 - Chapter 344

Application Development Tips and Tricks 79Getting the stream time length in ActionScriptIf you are buffering your streams, you can use the NetStream.b

Page 66

Chapter 480NetStream.timeAlthough it is not explicitly stated in the Client-Side Communication ActionScript Dictionary, the NetStream.time property re

Page 67 - Chapter 346

Application Development Tips and Tricks 81If you are having problems understanding how your shared object is behaving, it helps to put some debug code

Page 68

Chapter 216The NetConnection object tells the Flash Player to connect to an application on the server. You can use NetConnection objects to create pow

Page 69 - Chapter 348

Chapter 482Assign an owner A more complex strategy is to define a single client as the owner of a property in a shared object for a limited period of

Page 70 - Server Security

Application Development Tips and Tricks 83Stream objectIf you want to delete the FLV and IDX files associated with a recorded stream, you must use ser

Page 71 - • Vhost.xml

Chapter 484Understanding frame ratesIf you embed an FLV file in a movie in a static SWF file, its frame rate will be the same as the frame’s playback

Page 72 - • Application.xml

85CHAPTER 5Application Server ConnectivityThis chapter explains how to use Macromedia Flash Remoting services to add application server connectivity t

Page 73

Chapter 586You’ll place the FLA and ASC files in your application directory, and place in that same directory the netservices.asc file that enables Ne

Page 74 - Deploying secure applications

Application Server Connectivity 872 Create the event handler for the Run_btn button. Notice the call to runTests. This invokes the function you’ll def

Page 75

Chapter 5883 In the onConnect function, accept the client’s connection.application.onConnect = function (clientObj) {trace("***** on connect"

Page 76

Application Server Connectivity 898 For each test, receive the result, result. Then call the client-defined function postResults and pass the client t

Page 77

Chapter 5904 Create the getArray method that the Flash Communication Server will invoke.<cffunction name="getArray" output="false&qu

Page 78

Application Server Connectivity 91To write the client-side ActionScript for this sample:1 Add the following debug code to trace all the status informa

Page 79 - Developing Communication

Installation and Workflow 17Developer workflowIf you’re a developer, you can create a Flash Communication Server application that has a client compone

Page 80

Chapter 5923 In the onConnect function, accept the client’s connection.application.onConnect = function (clientObj) {trace("***** on connect"

Page 81

Application Server Connectivity 93Sample 3: RecordsetOnce you have easy access to a database, you add data storage and retrieval to your Flash Communi

Page 82

Chapter 5943 In the same method, assign a variable name, recstr, for the data coming from the call to getRecordString and populate the list box with t

Page 83 - About This Manual

Application Server Connectivity 953 Create a global object to hold the recordset.// An object to hold your service and recordsetgFoo = {};4Get a refer

Page 84

Chapter 596

Page 85

Flash Communication Server Management Tools 97APPENDIXFlash Communication ServerManagement ToolsAs an application developer, one of your most import

Page 86

Appendix 98Connecting the App inspector to a serverWhen you open the App inspector, you use the log-on screen to connect as an administrator to the

Page 87 - Recorded stream

Flash Communication Server Management Tools 99The Application Instance panelAfter you have connected to the server, the App inspector displays a pan

Page 88

Appendix 100The Live Log panelThe Live Log panel displays the log messages that are generated by the selected application instance on the server and

Page 89

Flash Communication Server Management Tools 101The Streams panelThe Streams panel displays information about the streams associated with the selecte

Page 90

Chapter 218The following resources will help you develop Flash Communication Server applications.To begin To get started in the development process, b

Page 91

Appendix 102The Shared Objects panelThis panel shows information about the shared objects used by the application instance (and resident on the serv

Page 92 - Chapter 114

Flash Communication Server Management Tools 103This panel lets you perform the following tasks:• To return to the list of currently running applicat

Page 93

Appendix 104Messages per Sec (In/Out) indicates the average number of messages (video frames from cameras, audio packets, and command messages) per

Page 94 - Chapter 116

Flash Communication Server Management Tools 105Using the NetConnection DebuggerThe NetConnection Debugger provides Flash MX developers with a tool t

Page 95 - Connecting to the server

Appendix 106Events shows a list of individual debug events. Each debug event contains an icon that represents the debug event source, the type of de

Page 96 - Chapter 118

Flash Communication Server Management Tools 107Operator lets you select the comparison criterion that must be met for an event to appear in the Even

Page 97 - To see the sample in action:

Appendix 108Request Limits controls the maximum number of events that are displayed from an application server per transaction, and the maximum numb

Page 98 - Options menu

109INDEXSymbols# Active 103# Properties 102# Users Connected 102#include 52#include "NetDebug.as" 32, 105AAccepted (Total) 103ACL (ac

Page 99

Index110change, and SharedObject.onSync 80clear, and SharedObject.onSync 80Client ID 101client information, tracking 25Client object 12and client

Page 100 - Chapter 122

Index 111LLaunch Time 103Live Log panel 100local shared object. See shared objectslocal variables and var 65localhost, and NetConnection.connect 1

Page 101 - Applications

Installation and Workflow 19Administrator workflowIf you’re an administrator, you’ll use the Administration Console to configure Flash Communication S

Page 102 - Client 1 Client 2

Index112Ppassing data between clients 24persistence, and shared objects 68Player Settings panel 53Player, latest version 17portability and applica

Page 103

Index 113Subscribed Events 107Summary panel 106System.onStatus 59System.showSettings 53Tthumbnails 70, 72tips and tricks 83Application object

Page 104 - Chapter 226

macromedia™®Client-Side CommunicationActionScript DictionaryMacromedia Flash™ Communication Server MX

Page 105

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Page 106 - Chapter 228

3CONTENTSClient-Side Communication ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Camera (object). . . . . . . . . . . . . .

Page 107 - SharedObject.onSync

Contents4Microphone.name. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44Microphone.names .

Page 108 - Chapter 230

Contents 5System (object) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99System.showS

Page 110 - Sample 1: Recording a Stream

7Client-Side Communication ActionScriptThis document is designed to be used in conjunction with the information in the online Flash ActionScript Dicti

Page 111 - Sample Applications 33

8gain Microphone.gainget Camera.get, Microphone.getgetLocal SharedObject.getLocalgetRemote SharedObject.getRemotegetSize SharedObject.getSizeheight Ca

Page 112 - Chapter 3 34

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Page 114 - Chapter 3 36

Client-Side Communication ActionScript 9Camera (object)Availability• Flash Player 6.• Flash Communication Server MX (not required).The Camera object l

Page 115 - Sample 3: Shared Ball

10Method summary for the Camera objectProperty summary for the Camera objectMethod DescriptionCamera.get Returns a default or specified Camera object,

Page 116 - Sample 4: Hello Server

Client-Side Communication ActionScript 11Event handler summary for the Camera objectConstructor for the Camera objectSee Camera.get.Camera.activityLev

Page 117 - Sample Applications 39

12ExampleThe following example loads another movie if the camera’s bandwidth is 32 kilobytes or greater.if(myCam.bandwidth >= 32768){loadMovie(&quo

Page 118 - Chapter 3 40

Client-Side Communication ActionScript 13ExampleThe following example sets the fps rate of the active camera, myCam.fps, to the value provided by the

Page 119 - Sample 5: Text Chat

14When a movie tries to access the camera returned by Camera.get—for example, when you issue NetStream.attachVideo or Video.attachVideo—the Flash Play

Page 120 - Chapter 3 42

Client-Side Communication ActionScript 15ExampleThe following example captures and displays video locally within a Video object named myVid on the Sta

Page 121 - Sample Applications 43

16Camera.keyFrameIntervalAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamera.keyFrameIntervalDescriptionRead

Page 122 - Chapter 3 44

Client-Side Communication ActionScript 17Camera.motionLevelAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCame

Page 123 - Sample Applications 45

18Camera.mutedAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamera.mutedDescriptionRead-only property; a Bool

Page 124 - Sample 6: Record a List

21GLOSSARYFlash Communication Server Termsapplication server Software that helps a web server process web pages that contain server-side scripts or ta

Page 125 - Sample Applications 47

Client-Side Communication ActionScript 19ExampleThe following example displays the name of the default camera in the Output window. In Windows, this n

Page 126 - Chapter 3 48

20Camera.onActivityAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamera.onActivity = function(activity) {// Y

Page 127 - Sample Applications 49

Client-Side Communication ActionScript 21Camera.onStatusAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamera.

Page 128 - Chapter 3 50

22Camera.qualityAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamera.qualityDescriptionRead-only property; an

Page 129 - CHAPTER 4

Client-Side Communication ActionScript 23To determine how to set a value for keyframeInterval, consider both bandwidth use and video playback accessib

Page 130 - Chapter 452

24See alsoCamera.loopback, Camera.setQualityCamera.setModeAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveCamer

Page 131

Client-Side Communication ActionScript 25ExampleThe following example sets the width, height, and fps based on the user’s input if the user clicks the

Page 132 - Chapter 454

26Motion sensitivity values correspond directly to activity values. Complete lack of motion is an activity value of 0. Constant motion is an activity

Page 133

Client-Side Communication ActionScript 27ReturnsNothing. DescriptionMethod; sets the maximum amount of bandwidth per second or the required picture qu

Page 134 - Chapter 456

28ExampleThe following line of code updates a text box in the user interface with the current width value.myTextField.text=myCam.width;See also the ex

Page 135

macromedia™®Managing FlashCommunication ServerMacromedia Flash™ Communication Server MX

Page 136 - Debugging your application

Client-Side Communication ActionScript 29Method summary for the LocalConnection objectEvent handler summary for the LocalConnection objectConstructor

Page 137

30See alsoLocalConnection.connect, LocalConnection.sendLocalConnection.allowDomain Availability• Flash Player 6.• Flash Communication Server MX (not r

Page 138 - Adding a privacy module

Client-Side Communication ActionScript 31In the following example, the receiving movie accepts commands only from movies located in thisDomain.com or

Page 139

32ParametersconnectionName A string that corresponds to the connection name specified in the LocalConnection.send command that wants to communicate wi

Page 140 - Chapter 462

Client-Side Communication ActionScript 33Movie 1 contains the following code attached to a button labeled PushMe. When you push the button, you see “T

Page 141 - • Movie name: my_movie.swf

34The most common use of this command is to include the domain name of the sending LocalConnection object as a parameter to the method you plan to inv

Page 142 - • // :KLUDGE:

Client-Side Communication ActionScript 35• The aResult method (line 54) displays the value returned by aSum (579). // The receiving movie at http://ww

Page 143 - • // :TRICKY:

36DescriptionEvent handler; invoked after a sending LocalConnection object tries to send a command to a receiving LocalConnection object. If you want

Page 144 - Chapter 466

Client-Side Communication ActionScript 37ParametersconnectionName A string that corresponds to the connection name specified in the LocalConnection.co

Page 145 - File types and paths

38See alsoLocalConnection.allowDomain, LocalConnection.connect, LocalConnection.domain, LocalConnection.onStatusMicrophone (object)Availability• Flash

Page 146 - Chapter 468

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Page 147

Client-Side Communication ActionScript 39Event handler summary for the Microphone objectConstructor for the Microphone objectSee Microphone.get. Micro

Page 148 - Snapshots and thumbnails

40Microphone.gainAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveMicrophone.gainDescriptionRead-only property;

Page 149

Client-Side Communication ActionScript 41Microphone.getAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageMicrophone.get

Page 150 - Chapter 472

42When a movie tries to access the microphone returned by Microphone.get—for example, when you issue NetStream.attachAudio or MovieClip.attachAudio—th

Page 151

Client-Side Communication ActionScript 43ExampleThe following example lets the user specify the default microphone, then captures audio and plays it b

Page 152 - Chapter 474

44ExampleIn the following example, when the user clicks the button, Flash publishes and plays a live stream if the microphone is not muted.on (press)

Page 153 - Application object

Client-Side Communication ActionScript 45Microphone.namesAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageMicrophone.n

Page 154 - Camera object

46Parametersactivity A Boolean value set to true when the microphone starts detecting sound, false when it stops.ReturnsNothing.DescriptionEvent handl

Page 155 - Client object

Client-Side Communication ActionScript 47When a movie tries to access the microphone, the Flash Player displays a Privacy dialog box that lets the use

Page 156 - NetStream object

48Microphone.setGainAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveMicrophone.setGain(gain)Parametersgain An i

Page 157

3CONTENTSINTRODUCTIONManaging Flash Communication Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Intended audience. . . . . . . .

Page 158 - SharedObject object

Client-Side Communication ActionScript 49ReturnsNothing.DescriptionMethod; sets the rate, in kHz, at which the microphone should capture sound.Example

Page 159

50Silence values correspond directly to activity values. Complete silence is an activity value of 0. Constant loud noise (as loud as can be registered

Page 160 - Assign an owner

Client-Side Communication ActionScript 51DescriptionMethod; specifies whether to use the echo suppression feature of the audio codec. The default valu

Page 161

52Microphone.silenceTimeoutAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsageactiveMicrophone.silenceTimeoutDescription

Page 162 - Chapter 484

Client-Side Communication ActionScript 53MovieClip (object) This object is discussed in detail in the online Flash ActionScript Dictionary in the Flas

Page 163 - CHAPTER 5

54NetConnection (object)Availability• Flash Player 6.Flash Communication Server MX.• The NetConnection object manages a bidirectional connection betwe

Page 164 - Sample 1: Simple Remoting

Client-Side Communication ActionScript 55DescriptionConstructor; creates an object that can be used to connect the Flash Player to the Flash Communica

Page 165

56DescriptionMethod; invokes a command or method on the server. You must create a server-side function to define this method. This method is also used

Page 166 - Chapter 588

Client-Side Communication ActionScript 57DescriptionMethod; closes the connection with the server and invokes NetConnection.onStatus with a code prope

Page 167

58For example, the following URIs are formatted correctly:• rtmp://www.myCompany.com/myMainDirectory/groupChatApp/HelpDesk• rtmp:/sharedWhiteboardApp/

Page 169

Client-Side Communication ActionScript 59If your connection fails, make sure you have met all the requirements for connecting successfully:• You are s

Page 170 - Chapter 592

60Understanding file naming and domains used with this methodIf an HTML page containing a movie is accessed differently (with regards to domain names)

Page 171 - Sample 3: Recordset

Client-Side Communication ActionScript 61NetConnection.isConnectedAvailability• Flash Player 6.• Flash Communication Server MX.UsagemyConnection.isCon

Page 172 - Chapter 594

62ExampleThe following example writes data about the connection to a log file.reconnection.onStatus = function(info){_root.log += "Recording stre

Page 173

Client-Side Communication ActionScript 63The following steps summarize the sequence of actions required for publishing real-time audio and video using

Page 174 - Chapter 596

64Method summary for the NetStream objectProperty summary for the NetStream objectEvent handler summary for the NetStream objectConstructor for the Ne

Page 175 - Management Tools

Client-Side Communication ActionScript 65ParametersmyRTMPConnection A NetConnection object that is using the Real-Time Messaging Protocol (RTMP) to co

Page 176 - 4 Click Connect

66Parameterssource The source of the audio to be transmitted. Valid values are a Microphone object andnull.ReturnsNothing.DescriptionMethod; specifies

Page 177

Client-Side Communication ActionScript 67ReturnsNothing.DescriptionMethod; starts capturing video from the specified source, or stops capturing if sou

Page 178 - Appendix 100

68ExampleThe following function publishes a stream containing the camera output.function pubLive(){// Create a new source stream.srcStream = new NetSt

Page 179

5INTRODUCTIONManaging Flash Communication ServerMacromedia Flash Communication Server MX enables one-to-one, one-to-many, many-to-one, and many-to-man

Page 180

Client-Side Communication ActionScript 69DescriptionProperty; the number of seconds assigned to the buffer by NetStream.setBufferTime. The default val

Page 181

70NetStream.currentFpsAvailability• Flash Player 6.• Flash Communication Server MX.UsagemyStream.currentFpsDescriptionRead-only property; the number o

Page 182 - Messages per Sec (In/Out)

Client-Side Communication ActionScript 71ReturnsNothing.DescriptionMethod; pauses or resumes playback of a stream. This method is available only to cl

Page 183

72NetStream.playAvailability• Flash Player 6.• Flash Communication Server MX.Usagemystream.play(whatToPlay | false [,start [, length [, flushPlaylists

Page 184 - Appendix 106

Client-Side Communication ActionScript 73DescriptionMethod; feeds streaming audio, video, and text messages being published on the Flash Communication

Page 185 - Operator

74Example 2:// To play and switch between live and recorded streams:// Suppose we have two live streams, live1 and live2, // and three recorded stream

Page 186 - Request Limits

Client-Side Communication ActionScript 75• If you pass "append" for howToPublish, Flash publishes and records live data, appending the recor

Page 187

76ExampleThe following example shows how to publish and record a video, and then play it back.connection = new NetConnection();connection.connect(&quo

Page 188

Client-Side Communication ActionScript 77Parametersreceive A Boolean value that specifies whether incoming video plays on the specified stream (true)

Page 189 - Index 111

78ParametersnumberOfSeconds The number of seconds to move forward or backward in a recorded stream or playlist. • To return to the beginning of the st

Page 190 - Index112

Introduction6About the Flash Communication Server documentationAll Flash Communication Server documents are available in PDF format (viewable and prin

Page 191 - Index 113

Client-Side Communication ActionScript 79p1, ...,pN Optional parameters that can be of any type. They are serialized and sent over the connection, and

Page 192 - ActionScript Dictionary

80DescriptionMethod; behavior depends on whether this method is called on a publishing or a subscribing stream.• For a publishing stream, this method

Page 193

Client-Side Communication ActionScript 81ExampleThe following example shows how this value increments for a publishing stream.myStream.publish("s

Page 194 - CONTENTS

82The following examples show a few ways shared objects are called within ActionScript programs. Note that in order to create a remote shared object,

Page 195 - Contents4

Client-Side Communication ActionScript 83Compare this data structure to a shared object with the same attributes, but with a flat design that occupies

Page 196 - Contents 5

84By default, Flash can save locally persistent remote shared objects up to 100 K in size. When you try to save a larger object, the Flash Player disp

Page 197 - Contents6

Client-Side Communication ActionScript 85Additionally, if the user selects a value that is less than the amount of disk space currently being used for

Page 198

86Method summary for the SharedObject objectProperty summary for the SharedObject objectEvent handler summary for the SharedObject objectConstructor f

Page 199

Client-Side Communication ActionScript 87SharedObject.closeAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyRemoteSh

Page 200 - • Flash Player 6

88ExampleThe following example connects to a shared object and initializes it.function getMaster(){ trace("getMaster called");master = Share

Page 201

7CHAPTER 1Installing Flash Communication ServerInstalling Macromedia Flash Communication Server MX is a simple process. This chapter describes the ins

Page 202 - Method Description

Client-Side Communication ActionScript 89To create “private” values for a shared object—values that are available only to the client instance while th

Page 203

90For example, if you expect a shared object to grow to a maximum size of 500 bytes, even though it may start out much smaller, pass 500 for minimumDi

Page 204 - Camera.get

Client-Side Communication ActionScript 91See alsoLocal disk space considerations, SharedObject.closeSharedObject.getLocalAvailability• Flash Player 6.

Page 205

92ExampleThe following example saves the last frame a user entered to a local shared object kookie. // Get the kookieso = sharedobject.getlocal("

Page 206

Client-Side Communication ActionScript 93ReturnsA reference to an object that can be shared across multiple clients. If Flash can’t create or find the

Page 207

94Understanding naming conventions for remote shared objects. To avoid name collisions, Flash looks at the location of the movie that is creating the

Page 208

Client-Side Communication ActionScript 95SharedObject.getSizeAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyLocalO

Page 209

96SharedObject.onSyncAvailability• Flash Player 6.• Flash Communication Server MX.UsagemyRemoteSharedObject.onSync = function(objArray){// Your code h

Page 210 - Camera.names

Client-Side Communication ActionScript 97To minimize network traffic, this method is not called when a client “changes” a property to the same value i

Page 211 - Camera.onActivity

98DescriptionMethod; broadcasts a message to all clients connected to myRemoteSharedObject, including the client that sent the message. To process and

Page 212 - Camera.onStatus

Chapter 18To install Flash Communication Server:1 Locate the FlashComInstaller.exe file.This file is on your installation CD, or you may have download

Page 213 - Camera.setQuality

Client-Side Communication ActionScript 99Regardless of the value you pass for updatesPerSecond, changes are not sent to the server until SharedObject.

Page 214 - Camera.setLoopback

100For example, if your application requires the use of a camera, you can inform the user that they must choose “Allow” in the Privacy Settings panel,

Page 215 - Camera.setMode

Client-Side Communication ActionScript 101Video.attachVideoAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyVideoObj

Page 216 - Camera.setMotionLevel

102Video.clearAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyVideoObject.clear()ParametersNone.ReturnsNothing.Desc

Page 217

Client-Side Communication ActionScript 103Video.heightAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyVideoObject.h

Page 218

104Video.widthAvailability• Flash Player 6.• Flash Communication Server MX (not required).UsagemyVideoObject.widthDescriptionRead-only property; an in

Page 219 - LocalConnection (object)

Client-Side Information Objects 105APPENDIXClient-Side Information ObjectsThe Camera, Microphone, LocalConnection, NetConnection, NetStream, and Share

Page 220

Appendix106The following tables show the default properties of each information object and the circumstances under which onStatus is invoked with each

Page 221 - LocalConnection.allowDomain

Client-Side Information Objects 107NetConnection information objectsThe following events notify you when certain NetConnection activities occur.NetStr

Page 222

Appendix108NetStream.Play.Reset Status The playlist has reset (pending play commands have been flushed).NetStream.Play.Start Status Playback has start

Page 223 - Description

3CONTENTSCHAPTER 1Introducing Flash Communication Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Flash Communication Server edition

Page 224 - LocalConnection.domain

Installing Flash Communication Server 9About the installed filesWhen the server has been installed, you’ll find several other files in the installatio

Page 225

Client-Side Information Objects 109SharedObject information objectsThe following events notify you when certain SharedObject activities occur.Code pro

Page 226 - LocalConnection.onStatus

macromedia™®Server-Side CommunicationActionScript DictionaryMacromedia Flash™ Communication Server MX

Page 227 - LocalConnection.send

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Page 228

3CONTENTSServer-Side Communication ActionScript . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Using server-side ActionScript. . . . . . .

Page 229 - Microphone (object)

Contents4NetConnection.isConnected . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38NetConnection.onStatus

Page 230 - Microphone.activityLevel

Server-Side Communication ActionScript 5Server-Side Communication ActionScriptServer-Side Communication ActionScript is a scripting language on the se

Page 231 - Microphone.gain

6To install and test the server-side ActionScript file, do the following: 1 Locate the flashcom application directory.During installation, you can cho

Page 232 - Microphone.get

Server-Side Communication ActionScript 7Naming applications Flash Communication Server application names must follow the Uniform Resource Identifier (

Page 233

8clearInterval clearIntervalclearSharedObject Application.clearSharedObjectsclearStreams Application.clearStreamsClient Client (object)clients Applica

Page 234

Server-Side Communication ActionScript 9Application (object)The Application object contains information about a Flash Communication Server application

Page 235 - Microphone.name

Chapter 110Installing Flash authoring components on the Macintosh To install the Communication App inspector, NetConnection Debugger, and related help

Page 236

10Method summary for the Application objectProperty summary for the Application object Event handler summary for the Application objectApplication.acc

Page 237 - Microphone.onStatus

Server-Side Communication ActionScript 11DescriptionMethod; accepts the connection call from a client to the server. The application.onConnect event h

Page 238 - Microphone.rate

12The following are possible values for the soPath parameter:• / clears all local and persistent shared objects associated with the instance.• /foo/ba

Page 239

Server-Side Communication ActionScript 13The following are possible values for the streamPath parameter:• / clears all recorded streams associated wit

Page 240 - Microphone.setSilenceLevel

14ExampleThis example uses a for loop to iterate through each member of the application.clients array and calls the method serverUpdate on each client

Page 241

Server-Side Communication ActionScript 15ExampleThe following example checks the name property against a specific string before it executes some code:

Page 242 - Microphone.silenceLevel

16DescriptionEvent handler; invoked when the application is about to be unloaded by the server. You can define a function that executes when the event

Page 243

Server-Side Communication ActionScript 17p1 ..., pN Optional parameters passed to the application.onConnect method. These parameters are passed from t

Page 244

18DescriptionEvent handler; invoked on the server side when NetConnection.connect is called from the client side and a client attempts to connect to a

Page 245

Server-Side Communication ActionScript 19Usageapplication.onDisconnect = function (clientObj){// insert code here};ParametersclientObj A client discon

Page 246 - NetConnection.call

11CHAPTER 2Managing the ServerAs a Flash Communication Server administrator, you’ll need to perform several administrative tasks after the server is i

Page 247 - NetConnection.close

20ExampleThe following example defines a function that sends a trace statement whenever the application.onStatus method is invoked. You can also defin

Page 248 - NetConnection.connect

Server-Side Communication ActionScript 21If you register a class that has its prototype set to another class, you must set the prototype constructor b

Page 249

22ParametersmethodName The name of a method. All requests to execute methodName for this application instance are forwarded to the proxyConnection obj

Page 250 - • The server is running

Server-Side Communication ActionScript 23ReturnsNothing.DescriptionMethod; rejects the connection call from a client to the server. The application.on

Page 251 - See also

24clearIntervalAvailabilityFlash Communication Server MX.UsageclearInterval(intervalID)ParametersintervalID A unique ID returned by a previous call to

Page 252

Server-Side Communication ActionScript 25If all instances of the Client object (each client in an application) require the same methods or properties,

Page 253 - NetStream (object)

26The methods are available to any instance, so within application.onConnect, which is passed a clientObj argument, you can write the following code:a

Page 254

Server-Side Communication ActionScript 27ExampleThe following example checks the agent property against the string "WIN" and executes differ

Page 255

28The following server-side script uses the Client.call method inside the application.onConnect handler to call the random method that was defined on

Page 256 - NetStream.attachAudio

Server-Side Communication ActionScript 29The sum method can then be called from NetConnection.call on the Flash client side, as shown in the following

Page 257

Chapter 212An optional Application.xml file in the application’s directory in the flashcom application directory. If present, this file provides speci

Page 258

30ReturnsAn integer indicating bytes per second.DescriptionMethod; returns the maximum bandwidth that the client or the server can use for this connec

Page 259

Server-Side Communication ActionScript 31By default, all clients have full read access, and the readAccess property is set to slash (/). To give a cli

Page 260 - NetStream.setBufferTime

32ParameterspropName The name of an undefined property.ReturnsThe value of the undefined property, which is specified by the propName parameter.Descri

Page 261

Server-Side Communication ActionScript 33Client.writeAccessAvailabilityFlash Communication Server MX.UsageClient.writeAccessDescriptionProperty; provi

Page 262

34Note: For security reasons, your server-side applications directory, which contains ASC files, audio/video FLV files, and ActionScript FLA source fi

Page 263 - Availability

Server-Side Communication ActionScript 35Method summary for the NetConnection object Property summary for the NetConnection object Event handler summa

Page 264

36Parameters name A string that identifies the header and the ActionScript object data associated with it.mustUnderstand A Boolean value; true indicat

Page 265 - NetStream.publish

Server-Side Communication ActionScript 37DescriptionMethod; invokes a command or method on a Flash Communication Server or an application server to wh

Page 266

38ExampleThe following code closes the NetConnection instance myNetConn:myNetConn.close();NetConnection.connectAvailabilityFlash Communication Server

Page 267

Server-Side Communication ActionScript 39UsagemyNetConnection.isConnectedDescriptionProperty (read-only); a Boolean value that indicates whether a con

Page 268 - NetStream.seek

Managing the Server 13When you install the server, the default flashcom application directory includes sample applications that are provided to illust

Page 269

40ExampleThis example defines a function for the onStatus handler that outputs messages to indicate whether the NetConnection was successful:nc = new

Page 270

Server-Side Communication ActionScript 41DescriptionMethod (global); continually calls a function or method at a specified time interval until the cle

Page 271 - NetStream.time

42Every shared object is identified by a unique name and contains a list of name-value pairs, called properties, just like any other ActionScript obje

Page 272

Server-Side Communication ActionScript 43Method summary for the SharedObject object Property summary for the SharedObject object Event summary for the

Page 273

44ParametersNone.ReturnsReturns true if successful; false otherwise. DescriptionMethod; deletes all properties and sends a “clear” event to all client

Page 274

Server-Side Communication ActionScript 45SharedObject.flushAvailabilityFlash Communication Server MX.UsageSharedObject.flush()ParametersNone.ReturnsA

Page 275

46DescriptionStatic method; returns a reference to a shared object instance. To perform any operation on a shared object, the server-side script must

Page 276

Server-Side Communication ActionScript 47ExampleThis example creates a shared object named foo inside the function onProcessCmd. The function is passe

Page 277

48SharedObject.getPropertyNamesAvailabilityFlash Communication Server MX.UsagemySharedObject.getPropertyNames()Parameters None.ReturnsAn array contain

Page 278

Server-Side Communication ActionScript 49The this keyword used in the body of the function is set to the shared object instance returned by SharedObje

Page 279 - SharedObject.data

Chapter 214Once you have specified the directory where you’ll store your application directories, you must create a directory inside it for each clien

Page 280

50ExampleThis example outputs foo to the NetConnection Debugger:mySO = SharedObject.get("foo");trace(mySO.name);SharedObject.onStatusAvailab

Page 281

Server-Side Communication ActionScript 51Local shared objectsNote: Changing or deleting a property on the server side using the SharedObject.setProper

Page 282 - SharedObject.getLocal

52ExampleThe following example creates a function that is invoked whenever a property of the shared object so changes:// create a new NetConnection ob

Page 283

Server-Side Communication ActionScript 53SharedObject.resyncDepthAvailabilityFlash Communication Server MX.UsageSharedObject.resyncDepthDescriptionPro

Page 284

54ReturnsA Boolean value of true if the message was sent to the client; false otherwise. DescriptionMethod; executes a method in a client-side script.

Page 285

Server-Side Communication ActionScript 55If you call SharedObject.setProperty on the server side, it invokes a change message in the SharedObject.onSy

Page 286

56UsagemySharedObject.unlock()ParametersNone.ReturnsAn integer indicating the lock count: 0 or greater if successful, -1 otherwise. For proxied shared

Page 287

Server-Side Communication ActionScript 57You can create other Stream properties of any legal ActionScript type, including references to other ActionSc

Page 288 - SharedObject.send

58Stream.clearAvailabilityFlash Communication Server MX.UsageStream.clear()ParametersNone.ReturnsA Boolean value of true if the call succeeds, false o

Page 289 - SharedObject.setFps

Server-Side Communication ActionScript 59ExampleThis example gets the stream foo and assigns it to the variable playStream. It then calls the Stream.p

Page 290

Managing the Server 15The Communication App inspector and NetConnection Debugger If you have Flash MX installed, you’ll find two new windows related t

Page 291 - Video (object)

60UsagemyStream.onStatus = function([infoObject]) {// Insert code here};ParametersinfoObject An optional parameter defined according to the status mes

Page 292 - Video.attachVideo

Server-Side Communication ActionScript 61reset A Boolean value that flushes the playing stream. If reset is false, the server maintains a playlist, an

Page 293

62ExampleThis example illustrates how streams can be chained between servers:application.myRemoteConn = new NetConnection();application.myRemoteConn.o

Page 294

Server-Side Communication ActionScript 63Parametersflag This parameter can have the value record, append, or false. If the value is record, the data f

Page 295 - Video.width

64DescriptionMethod; calls a method on all the clients subscribing to a stream. When you call Stream.send on the server side, any client publishing to

Page 296

Server-Side Communication ActionScript 65traceAvailabilityFlash Communication Server MX.Usagetrace("Hello world");trace("Value of i = &

Page 298 - NetStream information objects

67APPENDIXServer-Side Information ObjectsThe Application, NetConnection, and Stream objects provide an onStatus event handler that uses an information

Page 299 - Appendix108

Appendix68NetConnection information objectsThe NetConnection object has the same information objects as the client-side NetConnection object. Stream i

Page 300

Server-Side Information Objects 69NetStream.Failed Error An attempt to use a Stream method failed.*NetStream.Unpublish.Success Status An attempt to un

Page 301 - Server-Side Communication

Chapter 216Using the Administration ConsoleYou can do common server administration and monitoring tasks using the graphical user interface of the Admi

Page 302

Managing the Server 17You are now connected to the server, and the Diagnostics, Maintenance, Admin Users, Live Log, and License panels appear. These p

Page 303

Chapter 218An application may have more than one instance if its clients connect to the server by using different application instance parameters with

Page 304

Contents4

Page 305

Managing the Server 19VHost Restart lets you restart a virtual host. Restarting a virtual host disconnects all users of that virtual host and removes

Page 306 - Using naming conventions

Chapter 220Adding and editing administratorsTo add or edit administrator log-on information, you use the Admin Users panel. The Admin Users panel con

Page 307 - Contents of the dictionary

Managing the Server 21To add an administrator:1 Select the server or the virtual host you want to add the administrator to. The server or virtual host

Page 308

Chapter 222System lets you view server error messages, such as attempts to connect to nonexistent applications. When you select this option, server me

Page 309 - Application (object)

Managing the Server 23Configuring the server at runtime Using a special set of ActionScript commands, you can view and edit the server’s configuration

Page 311

25CHAPTER 3Configuring Flash Communication ServerMacromedia Flash Communication Server MX has been designed to accommodate many types of communication

Page 312 - Application.clearStreams

Chapter 326The Web root directory in this scenario would contain all the components of your applications, such as the flashcom application directory a

Page 313 - Application.clients

Configuring Flash Communication Server 27Deployment: two computersIn this scenario the Flash Communication Server and application server are on two se

Page 314 - Application.name

Chapter 328Deployment: two computers with authentication via Flash Communication ServerSome scenarios may require authentication of users who want to

Page 315 - Application.onAppStop

5CHAPTER 1Introducing Flash Communication ServerWelcome to Macromedia Flash Communication Server MX—the easiest way to create rich communication appli

Page 316 - Application.onConnect

Configuring Flash Communication Server 29Deployment: two computers with authentication via an application serverYou may decide to have users authentic

Page 317

Chapter 330About the configuration hierarchyFlash Communication Server can support several adaptors, virtual hosts, and applications simultaneously. E

Page 318 - Application.onDisconnect

Configuring Flash Communication Server 31A typical customized server conf directory might look like this:A customized conf directory containing multip

Page 319 - Application.onStatus

Chapter 332In the preceding example, each virtual host directory contains a subdirectory named applications. Each virtual host’s Vhost.xml must define

Page 320 - Application.registerClass

Configuring Flash Communication Server 33The Server.xml file contains the following tag structure, along with comments that briefly describe each tag.

Page 321 - Application.registerProxy

Chapter 334• The <User> tag inside the <UserList> tag specifies the user name of a server administrator in its name parameter and is a con

Page 322 - Application.rejectConnection

Configuring Flash Communication Server 35• <Order> specifies the order in which to evaluate the preceding <Allow> and <Deny> tags. I

Page 323 - Application.server

Chapter 336• The <Order> tag inside the <VirtualHost> tag works the same way as the <Order> tag inside the earlier <Server> ta

Page 324 - Client (object)

Configuring Flash Communication Server 37The following set of Server.xml tags has been customized for real-world use. Two server administrators are de

Page 325

Chapter 338The Adaptor.xml file The Adaptor.xml file defines settings for an adaptor. It determines the number of threads that can be used by the adap

Page 326 - Client.agent

Chapter 16The Flash Communication Server instructional media includes the following documentation:• This manual, Getting Started with Flash Communicat

Page 327 - Client.call

Configuring Flash Communication Server 39• <HostPort> specifies the IP address and one or more port numbers for the adaptor to bind to. The IP a

Page 328

Chapter 340The Vhost.xml file contains the following tag structure, with brief comments for each tag:<VirtualHost><AliasList><Alias>

Page 329 - Client.getBandwidthLimit

Configuring Flash Communication Server 41• <AppsDir> specifies the path to the flashcom application directory for this virtual host. The applica

Page 330 - Client.readAccess

Chapter 342• <MaxSharedObjects> specifies the maximum number of shared objects that the virtual host can create. (For more information about sha

Page 331 - Client.__resolve

Configuring Flash Communication Server 43The following set of Vhost.xml tags has been customized for real-world use. The alias stream is defined for t

Page 332 - Client.setBandwidthLimit

Chapter 344The Application.xml file contains the following tag structure, with brief comments for each tag:<Application><LoadOnStartup>fal

Page 333 - Client.writeAccess

Configuring Flash Communication Server 45• <JSEngine> is a container for the next two tags, which control the resource usage of the Server-Side

Page 334 - NetConnection (object)

Chapter 346• The <StorageDir> tag inside the <SharedObjManager> tag indicates the directory where shared objects should be stored. The def

Page 335 - NetConnection.addHeader

Configuring Flash Communication Server 47The following set of Application.xml tags has been customized for real-world use. The <RecordAppLog> ta

Page 336

Chapter 348

Page 337

Introducing Flash Communication Server 7Using additional resourcesThe Flash Communication Server Support Center website at www.macromedia.com/go/flash

Page 338 - NetConnection.isConnected

49CHAPTER 4Understanding Flash CommunicationServer SecurityMacromedia Flash Communication Server MX will typically be used in a network environment wh

Page 339 - NetConnection.onStatus

Chapter 450• Server.xmlThe <User> tags allow you to specify exactly who can connect to the server with the Administration Console. Only users sp

Page 340

Understanding Flash Communication Server Security 51• Application.xmlThe <JSEngine>:<RuntimeSize> tag lets you limit the amount of memory

Page 341 - • Sharing data in real time

Chapter 452To have the server perform authentication of connecting users other than administrators, use the <Allow> and <Deny> tags in the

Page 342

Understanding Flash Communication Server Security 53Use server-side script precautions. In server-side scripts do not use procedures that can be calle

Page 343 - SharedObject.clear

Chapter 454You can also configure a firewall to provide additional protection against outside attacks. For example, if the server is being flooded by

Page 344 - SharedObject.close

55INDEXAAdaptor tag (Adaptor.xml file) 38Adaptor tag (Server.xml file) 35adaptors, configuring 38Adaptor.xml file 38Adaptor tag 38Allow tag 39Ho

Page 345 - SharedObject.get

Index56Application.xml file (continued)StorageDir tag 45, 46StreamManager tag 45AppsDir tag 41authentication 28, 29, 51authoring components 10

Page 346

Index 57RRecordAccessLog tag 41RecordAppLog tag 44reloading applications 18removing applications 18ResourceLimits tag (Adaptor.xml file) 38Resour

Page 347 - SharedObject.getProperty

macromedia™®Developing CommunicationApplicationsMacromedia Flash™ Communication Server MX

Page 349 - SharedObject.name

TrademarksAfterburner, AppletAce, Attain, Attain Enterprise Learning System, Attain Essentials, Attain Objects for Dreamweaver, Authorware, Authorware

Page 350 - SharedObject.onStatus

3CONTENTSINTRODUCTIONAbout This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5Intended a

Page 351

Contents4CHAPTER 4Application Development Tips and Tricks. . . . . . . . . . . . . . . . . . . . . . . . . . . . 51Application design and development

Page 352 - SharedObject.purge

About This Manual 5INTRODUCTIONAbout This ManualWelcome to Macromedia Flash Communication Server MX!The Flash Communication Server provides the techno

Page 353 - SharedObject.resyncDepth

Introduction 6Typographical conventionsThe following typographical conventions are used in this manual:• Code font indicates ActionScript statements,

Page 354 - SharedObject.setProperty

7CHAPTER 1About Flash Communication ServerMacromedia Flash Communication Server MX, the new platform for interactive personal communication, integrate

Page 355 - SharedObject.unlock

Chapter 18Communications pass through the Flash Communication Server and are delivered to the client—the Flash Player on a user’s computer—by means of

Page 356 - Stream (object)

About Flash Communication Server 9The Flash Communication Server lets you stream live media (audio, video, and data) or record data to be played later

Page 357 - Stream.bufferTime

Chapter 110To create audio/video applications, you must have audio/video capture devices (such as a camera and microphone), Flash MX authoring softwar

Page 358 - Stream.get

About Flash Communication Server 11Flash Communication Server objectsAs mentioned earlier, Flash Communication Server provides two application program

Page 359 - Stream.onStatus

9CHAPTER 2Installation and WorkflowMacromedia Flash Communication Server MX is a development framework and a deployment environment for rich communica

Page 360 - Stream.play

Chapter 112Local shared objectClient-side local shared objects let you store information on a user’s computer, such as the high score in a game, that

Page 361

About Flash Communication Server 13Remote shared object. Remote shared objects are created on the client but are also available to the server. They le

Page 362 - Stream.record

Chapter 114Understanding shared objectsShared objects are a means for sharing data among different clients, among different instances of an applicatio

Page 363 - Stream.send

About Flash Communication Server 15The flashcom application directoryWhen your Flash application requires the Flash Communication Server, you must pla

Page 364 - Stream.setBufferTime

Chapter 116Using application instancesTo distinguish among different instances of a single application, pass a value for instanceName to your NetConne

Page 365

About Flash Communication Server 17Setting up your development environmentTo write Flash Communication Server applications, you must install the Flash

Page 366

Chapter 118Starting the serviceDuring server installation, you might have chosen to start the service automatically. If you did, the service will be s

Page 367

About Flash Communication Server 19Writing your first applicationThe Flash Communication Server installation includes a sample application called doc_

Page 368 - Appendix68

Chapter 120Recreating the sampleThis sample assumes you are using the Flash MX authoring environment on the computer that is running the Flash Communi

Page 369

About Flash Communication Server 213 Create a connection function that connects to the Flash Communication Server, displays a trace message indicating

Comments to this Manuals

No comments