MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Especificações

Consulte online ou descarregue Especificações para Servidores MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY. MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifications Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 369
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - Flash Communication Server

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

Página 2

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

Página 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

Página 4

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

Página 5

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

Página 6 - Chapter 16

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

Página 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

Página 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

Página 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

Página 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

Página 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-

Página 12 - Chapter 212

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

Página 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)

Página 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

Página 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

Página 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

Página 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("

Página 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_

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 26 - INTRODUCTION

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

Página 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

Página 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

Página 29 - Chapter 18

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

Página 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

Página 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

Página 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

Página 33

Chapter 3 50

Página 34 - Managing the Server 13

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

Página 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

Página 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

Página 37

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

Página 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

Página 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

Página 40

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

Página 41

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

Página 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

Página 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

Página 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

Página 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

Página 46

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

Página 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()

Página 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

Página 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

Página 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

Página 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

Página 52

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

Página 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

Página 54

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

Página 55 - Chapter 334

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

Página 56

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

Página 57 - Chapter 336

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

Página 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

Página 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

Página 60

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

Página 61 - Chapter 340

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

Página 62

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

Página 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

Página 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

Página 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

Página 66

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 72 - • Application.xml

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

Página 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

Página 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

Página 75

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

Página 76

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

Página 77

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

Página 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

Página 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

Página 80

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

Página 81

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

Página 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

Página 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

Página 84

Chapter 596

Página 85

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

Página 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

Página 87 - Recorded stream

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

Página 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

Página 89

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

Página 90

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

Página 91

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

Página 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

Página 93

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

Página 94 - Chapter 116

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

Página 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

Página 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

Página 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

Página 98 - Options menu

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

Página 99

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

Página 100 - Chapter 122

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

Página 101 - Applications

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

Página 102 - Client 1 Client 2

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

Página 103

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

Página 104 - Chapter 226

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

Página 105

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

Página 106 - Chapter 228

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

Página 107 - SharedObject.onSync

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

Página 108 - Chapter 230

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

Página 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

Página 111 - Sample Applications 33

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

Página 112 - Chapter 3 34

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

Página 114 - Chapter 3 36

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

Página 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,

Página 116 - Sample 4: Hello Server

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

Página 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

Página 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

Página 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

Página 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

Página 121 - Sample Applications 43

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

Página 122 - Chapter 3 44

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

Página 123 - Sample Applications 45

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

Página 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

Página 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

Página 126 - Chapter 3 48

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

Página 127 - Sample Applications 49

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

Página 128 - Chapter 3 50

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

Página 129 - CHAPTER 4

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

Página 130 - Chapter 452

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

Página 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

Página 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

Página 133

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

Página 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

Página 135

macromedia™®Managing FlashCommunication ServerMacromedia Flash™ Communication Server MX

Página 136 - Debugging your application

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

Página 137

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

Página 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

Página 139

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

Página 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

Página 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

Página 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

Página 143 - • // :TRICKY:

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

Página 144 - Chapter 466

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

Página 145 - File types and paths

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

Página 146 - Chapter 468

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

Página 147

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

Página 148 - Snapshots and thumbnails

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

Página 149

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

Página 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

Página 151

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

Página 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)

Página 153 - Application object

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

Página 154 - Camera object

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

Página 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

Página 156 - NetStream object

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

Página 157

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

Página 158 - SharedObject object

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

Página 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

Página 160 - Assign an owner

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

Página 161

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

Página 162 - Chapter 484

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

Página 163 - CHAPTER 5

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

Página 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

Página 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

Página 166 - Chapter 588

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

Página 167

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

Página 169

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

Página 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)

Página 171 - Sample 3: Recordset

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

Página 172 - Chapter 594

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

Página 173

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

Página 174 - Chapter 596

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

Página 175 - Management Tools

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

Página 176 - 4 Click Connect

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

Página 177

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

Página 178 - Appendix 100

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

Página 179

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

Página 180

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

Página 181

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

Página 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

Página 183

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

Página 184 - Appendix 106

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

Página 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

Página 186 - Request Limits

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

Página 187

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

Página 188

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

Página 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

Página 190 - Index112

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

Página 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

Página 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

Página 193

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

Página 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,

Página 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

Página 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

Página 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

Página 198

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

Página 199

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

Página 200 - • Flash Player 6

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

Página 201

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

Página 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

Página 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

Página 204 - Camera.get

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

Página 205

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

Página 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

Página 207

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

Página 208

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

Página 209

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

Página 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

Página 211 - Camera.onActivity

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

Página 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

Página 213 - Camera.setQuality

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

Página 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,

Página 215 - Camera.setMode

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

Página 216 - Camera.setMotionLevel

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

Página 217

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

Página 218

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

Página 219 - LocalConnection (object)

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

Página 220

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

Página 221 - LocalConnection.allowDomain

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

Página 222

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

Página 223 - Description

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

Página 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

Página 225

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

Página 226 - LocalConnection.onStatus

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

Página 227 - LocalConnection.send

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

Página 228

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

Página 229 - Microphone (object)

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

Página 230 - Microphone.activityLevel

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

Página 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

Página 232 - Microphone.get

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

Página 233

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

Página 234

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

Página 235 - Microphone.name

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

Página 236

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

Página 237 - Microphone.onStatus

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

Página 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

Página 239

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

Página 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

Página 241

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

Página 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

Página 243

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

Página 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

Página 245

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

Página 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

Página 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

Página 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

Página 249

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

Página 250 - • The server is running

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

Página 251 - See also

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

Página 252

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

Página 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

Página 254

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

Página 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

Página 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

Página 257

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

Página 258

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

Página 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

Página 260 - NetStream.setBufferTime

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

Página 261

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

Página 262

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

Página 263 - Availability

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

Página 264

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

Página 265 - NetStream.publish

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

Página 266

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

Página 267

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

Página 268 - NetStream.seek

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

Página 269

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

Página 270

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

Página 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

Página 272

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

Página 273

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

Página 274

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

Página 275

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

Página 276

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

Página 277

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

Página 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

Página 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

Página 280

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

Página 281

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

Página 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

Página 283

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

Página 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.

Página 285

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

Página 286

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

Página 287

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

Página 288 - SharedObject.send

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

Página 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

Página 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

Página 291 - Video (object)

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

Página 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

Página 293

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

Página 294

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

Página 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

Página 296

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

Página 298 - NetStream information objects

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

Página 299 - Appendix108

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

Página 300

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

Página 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

Página 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

Página 303

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

Página 304

Contents4

Página 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

Página 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

Página 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

Página 308

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

Página 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

Página 311

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

Página 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

Página 313 - Application.clients

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

Página 314 - Application.name

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

Página 315 - Application.onAppStop

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

Página 316 - Application.onConnect

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

Página 317

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

Página 318 - Application.onDisconnect

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

Página 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

Página 320 - Application.registerClass

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

Página 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

Página 322 - Application.rejectConnection

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

Página 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

Página 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

Página 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

Página 326 - Client.agent

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

Página 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

Página 328

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

Página 329 - Client.getBandwidthLimit

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

Página 330 - Client.readAccess

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

Página 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

Página 332 - Client.setBandwidthLimit

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

Página 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

Página 334 - NetConnection (object)

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

Página 335 - NetConnection.addHeader

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

Página 336

Chapter 348

Página 337

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

Página 338 - NetConnection.isConnected

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

Página 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

Página 340

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

Página 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

Página 342

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

Página 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

Página 344 - SharedObject.close

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

Página 345 - SharedObject.get

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

Página 346

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

Página 347 - SharedObject.getProperty

macromedia™®Developing CommunicationApplicationsMacromedia Flash™ Communication Server MX

Página 349 - SharedObject.name

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

Página 350 - SharedObject.onStatus

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

Página 351

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

Página 352 - SharedObject.purge

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

Página 353 - SharedObject.resyncDepth

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

Página 354 - SharedObject.setProperty

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

Página 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

Página 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

Página 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

Página 358 - Stream.get

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

Página 359 - Stream.onStatus

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

Página 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

Página 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

Página 362 - Stream.record

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

Página 363 - Stream.send

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

Página 364 - Stream.setBufferTime

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

Página 365

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

Página 366

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

Página 367

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

Página 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

Página 369

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

Comentários a estes Manuais

Sem comentários