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

Navigare online o scaricare Specifiche per Server MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY. MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifications Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti

Sommario

Pagina 1 - Flash Communication Server

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

Pagina 2

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

Pagina 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

Pagina 4

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

Pagina 5

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

Pagina 6 - Chapter 16

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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-

Pagina 12 - Chapter 212

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

Pagina 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)

Pagina 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

Pagina 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

Pagina 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

Pagina 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("

Pagina 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_

Pagina 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

Pagina 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

Pagina 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

Pagina 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.

Pagina 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

Pagina 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

Pagina 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

Pagina 26 - INTRODUCTION

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

Pagina 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

Pagina 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

Pagina 29 - Chapter 18

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

Pagina 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

Pagina 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

Pagina 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

Pagina 33

Chapter 3 50

Pagina 34 - Managing the Server 13

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

Pagina 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

Pagina 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

Pagina 37

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

Pagina 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

Pagina 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

Pagina 40

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

Pagina 41

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 46

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

Pagina 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()

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 52

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

Pagina 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

Pagina 54

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

Pagina 55 - Chapter 334

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

Pagina 56

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

Pagina 57 - Chapter 336

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

Pagina 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

Pagina 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

Pagina 60

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

Pagina 61 - Chapter 340

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

Pagina 62

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

Pagina 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

Pagina 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

Pagina 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

Pagina 66

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 72 - • Application.xml

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

Pagina 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

Pagina 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

Pagina 75

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

Pagina 76

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

Pagina 77

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

Pagina 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

Pagina 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

Pagina 80

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

Pagina 81

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

Pagina 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

Pagina 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

Pagina 84

Chapter 596

Pagina 85

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

Pagina 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

Pagina 87 - Recorded stream

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

Pagina 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

Pagina 89

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

Pagina 90

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

Pagina 91

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

Pagina 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

Pagina 93

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

Pagina 94 - Chapter 116

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

Pagina 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

Pagina 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

Pagina 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

Pagina 98 - Options menu

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

Pagina 99

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

Pagina 100 - Chapter 122

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

Pagina 101 - Applications

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

Pagina 102 - Client 1 Client 2

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

Pagina 103

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

Pagina 104 - Chapter 226

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

Pagina 105

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

Pagina 106 - Chapter 228

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

Pagina 107 - SharedObject.onSync

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

Pagina 108 - Chapter 230

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

Pagina 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

Pagina 111 - Sample Applications 33

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

Pagina 112 - Chapter 3 34

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

Pagina 114 - Chapter 3 36

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

Pagina 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,

Pagina 116 - Sample 4: Hello Server

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 121 - Sample Applications 43

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

Pagina 122 - Chapter 3 44

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

Pagina 123 - Sample Applications 45

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

Pagina 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

Pagina 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

Pagina 126 - Chapter 3 48

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

Pagina 127 - Sample Applications 49

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

Pagina 128 - Chapter 3 50

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

Pagina 129 - CHAPTER 4

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

Pagina 130 - Chapter 452

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

Pagina 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

Pagina 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

Pagina 133

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

Pagina 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

Pagina 135

macromedia™®Managing FlashCommunication ServerMacromedia Flash™ Communication Server MX

Pagina 136 - Debugging your application

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

Pagina 137

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

Pagina 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

Pagina 139

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

Pagina 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

Pagina 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

Pagina 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

Pagina 143 - • // :TRICKY:

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

Pagina 144 - Chapter 466

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

Pagina 145 - File types and paths

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

Pagina 146 - Chapter 468

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

Pagina 147

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

Pagina 148 - Snapshots and thumbnails

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

Pagina 149

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

Pagina 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

Pagina 151

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

Pagina 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)

Pagina 153 - Application object

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

Pagina 154 - Camera object

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

Pagina 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

Pagina 156 - NetStream object

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

Pagina 157

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

Pagina 158 - SharedObject object

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

Pagina 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

Pagina 160 - Assign an owner

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

Pagina 161

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

Pagina 162 - Chapter 484

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

Pagina 163 - CHAPTER 5

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

Pagina 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

Pagina 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

Pagina 166 - Chapter 588

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

Pagina 167

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

Pagina 169

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

Pagina 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)

Pagina 171 - Sample 3: Recordset

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

Pagina 172 - Chapter 594

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

Pagina 173

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

Pagina 174 - Chapter 596

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

Pagina 175 - Management Tools

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

Pagina 176 - 4 Click Connect

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

Pagina 177

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

Pagina 178 - Appendix 100

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

Pagina 179

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

Pagina 180

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

Pagina 181

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

Pagina 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

Pagina 183

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

Pagina 184 - Appendix 106

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

Pagina 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

Pagina 186 - Request Limits

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

Pagina 187

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

Pagina 188

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

Pagina 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

Pagina 190 - Index112

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

Pagina 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

Pagina 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

Pagina 193

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

Pagina 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,

Pagina 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

Pagina 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

Pagina 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

Pagina 198

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

Pagina 199

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

Pagina 200 - • Flash Player 6

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

Pagina 201

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

Pagina 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

Pagina 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

Pagina 204 - Camera.get

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

Pagina 205

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

Pagina 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

Pagina 207

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

Pagina 208

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

Pagina 209

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

Pagina 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

Pagina 211 - Camera.onActivity

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

Pagina 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

Pagina 213 - Camera.setQuality

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

Pagina 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,

Pagina 215 - Camera.setMode

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

Pagina 216 - Camera.setMotionLevel

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

Pagina 217

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

Pagina 218

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

Pagina 219 - LocalConnection (object)

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

Pagina 220

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

Pagina 221 - LocalConnection.allowDomain

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

Pagina 222

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

Pagina 223 - Description

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

Pagina 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

Pagina 225

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

Pagina 226 - LocalConnection.onStatus

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

Pagina 227 - LocalConnection.send

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

Pagina 228

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

Pagina 229 - Microphone (object)

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

Pagina 230 - Microphone.activityLevel

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

Pagina 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

Pagina 232 - Microphone.get

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

Pagina 233

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

Pagina 234

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

Pagina 235 - Microphone.name

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

Pagina 236

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

Pagina 237 - Microphone.onStatus

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

Pagina 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

Pagina 239

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

Pagina 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

Pagina 241

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

Pagina 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

Pagina 243

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

Pagina 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

Pagina 245

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

Pagina 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

Pagina 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

Pagina 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

Pagina 249

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

Pagina 250 - • The server is running

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

Pagina 251 - See also

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

Pagina 252

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

Pagina 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

Pagina 254

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

Pagina 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

Pagina 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

Pagina 257

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

Pagina 258

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

Pagina 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

Pagina 260 - NetStream.setBufferTime

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

Pagina 261

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

Pagina 262

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

Pagina 263 - Availability

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

Pagina 264

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

Pagina 265 - NetStream.publish

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

Pagina 266

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

Pagina 267

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

Pagina 268 - NetStream.seek

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

Pagina 269

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

Pagina 270

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

Pagina 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

Pagina 272

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

Pagina 273

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

Pagina 274

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

Pagina 275

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

Pagina 276

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

Pagina 277

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

Pagina 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

Pagina 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

Pagina 280

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

Pagina 281

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

Pagina 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

Pagina 283

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

Pagina 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.

Pagina 285

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

Pagina 286

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

Pagina 287

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

Pagina 288 - SharedObject.send

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

Pagina 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

Pagina 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

Pagina 291 - Video (object)

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

Pagina 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

Pagina 293

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

Pagina 294

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

Pagina 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

Pagina 296

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

Pagina 298 - NetStream information objects

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

Pagina 299 - Appendix108

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

Pagina 300

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

Pagina 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

Pagina 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

Pagina 303

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

Pagina 304

Contents4

Pagina 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

Pagina 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

Pagina 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

Pagina 308

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

Pagina 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

Pagina 311

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

Pagina 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

Pagina 313 - Application.clients

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

Pagina 314 - Application.name

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

Pagina 315 - Application.onAppStop

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

Pagina 316 - Application.onConnect

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

Pagina 317

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

Pagina 318 - Application.onDisconnect

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

Pagina 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

Pagina 320 - Application.registerClass

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

Pagina 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

Pagina 322 - Application.rejectConnection

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

Pagina 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

Pagina 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

Pagina 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

Pagina 326 - Client.agent

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

Pagina 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

Pagina 328

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

Pagina 329 - Client.getBandwidthLimit

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

Pagina 330 - Client.readAccess

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

Pagina 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

Pagina 332 - Client.setBandwidthLimit

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

Pagina 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

Pagina 334 - NetConnection (object)

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

Pagina 335 - NetConnection.addHeader

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

Pagina 336

Chapter 348

Pagina 337

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

Pagina 338 - NetConnection.isConnected

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

Pagina 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

Pagina 340

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

Pagina 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

Pagina 342

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

Pagina 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

Pagina 344 - SharedObject.close

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

Pagina 345 - SharedObject.get

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

Pagina 346

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

Pagina 347 - SharedObject.getProperty

macromedia™®Developing CommunicationApplicationsMacromedia Flash™ Communication Server MX

Pagina 349 - SharedObject.name

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

Pagina 350 - SharedObject.onStatus

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

Pagina 351

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

Pagina 352 - SharedObject.purge

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

Pagina 353 - SharedObject.resyncDepth

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

Pagina 354 - SharedObject.setProperty

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

Pagina 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

Pagina 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

Pagina 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

Pagina 358 - Stream.get

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

Pagina 359 - Stream.onStatus

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

Pagina 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

Pagina 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

Pagina 362 - Stream.record

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

Pagina 363 - Stream.send

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

Pagina 364 - Stream.setBufferTime

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

Pagina 365

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

Pagina 366

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

Pagina 367

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

Pagina 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

Pagina 369

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

Commenti su questo manuale

Nessun commento