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

Stöbern Sie online oder laden Sie Spezifikationen nach Server MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY herunter. MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 369
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Flash Communication Server

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

Seite 2

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

Seite 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

Seite 4

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

Seite 5

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

Seite 6 - Chapter 16

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

Seite 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

Seite 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

Seite 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

Seite 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

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

Seite 12 - Chapter 212

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

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

Seite 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

Seite 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

Seite 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

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

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

Seite 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

Seite 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

Seite 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

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

Seite 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

Seite 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

Seite 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

Seite 26 - INTRODUCTION

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

Seite 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

Seite 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

Seite 29 - Chapter 18

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

Seite 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

Seite 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

Seite 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

Seite 33

Chapter 3 50

Seite 34 - Managing the Server 13

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

Seite 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

Seite 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

Seite 37

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

Seite 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

Seite 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

Seite 40

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

Seite 41

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 46

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

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 52

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

Seite 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

Seite 54

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

Seite 55 - Chapter 334

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

Seite 56

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

Seite 57 - Chapter 336

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

Seite 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

Seite 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

Seite 60

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

Seite 61 - Chapter 340

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

Seite 62

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

Seite 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

Seite 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

Seite 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

Seite 66

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 72 - • Application.xml

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

Seite 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

Seite 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

Seite 75

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

Seite 76

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

Seite 77

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

Seite 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

Seite 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

Seite 80

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

Seite 81

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

Seite 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

Seite 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

Seite 84

Chapter 596

Seite 85

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

Seite 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

Seite 87 - Recorded stream

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

Seite 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

Seite 89

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

Seite 90

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

Seite 91

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

Seite 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

Seite 93

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

Seite 94 - Chapter 116

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

Seite 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

Seite 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

Seite 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

Seite 98 - Options menu

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

Seite 99

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

Seite 100 - Chapter 122

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

Seite 101 - Applications

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

Seite 102 - Client 1 Client 2

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

Seite 103

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

Seite 104 - Chapter 226

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

Seite 105

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

Seite 106 - Chapter 228

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

Seite 107 - SharedObject.onSync

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

Seite 108 - Chapter 230

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

Seite 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

Seite 111 - Sample Applications 33

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

Seite 112 - Chapter 3 34

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

Seite 114 - Chapter 3 36

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

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

Seite 116 - Sample 4: Hello Server

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 121 - Sample Applications 43

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

Seite 122 - Chapter 3 44

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

Seite 123 - Sample Applications 45

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

Seite 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

Seite 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

Seite 126 - Chapter 3 48

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

Seite 127 - Sample Applications 49

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

Seite 128 - Chapter 3 50

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

Seite 129 - CHAPTER 4

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

Seite 130 - Chapter 452

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

Seite 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

Seite 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

Seite 133

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

Seite 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

Seite 135

macromedia™®Managing FlashCommunication ServerMacromedia Flash™ Communication Server MX

Seite 136 - Debugging your application

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

Seite 137

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

Seite 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

Seite 139

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

Seite 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

Seite 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

Seite 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

Seite 143 - • // :TRICKY:

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

Seite 144 - Chapter 466

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

Seite 145 - File types and paths

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

Seite 146 - Chapter 468

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

Seite 147

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

Seite 148 - Snapshots and thumbnails

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

Seite 149

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

Seite 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

Seite 151

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

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

Seite 153 - Application object

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

Seite 154 - Camera object

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

Seite 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

Seite 156 - NetStream object

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

Seite 157

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

Seite 158 - SharedObject object

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

Seite 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

Seite 160 - Assign an owner

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

Seite 161

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

Seite 162 - Chapter 484

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

Seite 163 - CHAPTER 5

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

Seite 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

Seite 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

Seite 166 - Chapter 588

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

Seite 167

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

Seite 169

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

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

Seite 171 - Sample 3: Recordset

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

Seite 172 - Chapter 594

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

Seite 173

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

Seite 174 - Chapter 596

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

Seite 175 - Management Tools

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

Seite 176 - 4 Click Connect

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

Seite 177

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

Seite 178 - Appendix 100

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

Seite 179

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

Seite 180

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

Seite 181

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

Seite 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

Seite 183

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

Seite 184 - Appendix 106

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

Seite 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

Seite 186 - Request Limits

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

Seite 187

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

Seite 188

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

Seite 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

Seite 190 - Index112

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

Seite 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

Seite 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

Seite 193

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

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

Seite 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

Seite 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

Seite 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

Seite 198

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

Seite 199

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

Seite 200 - • Flash Player 6

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

Seite 201

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

Seite 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

Seite 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

Seite 204 - Camera.get

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

Seite 205

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

Seite 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

Seite 207

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

Seite 208

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

Seite 209

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

Seite 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

Seite 211 - Camera.onActivity

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

Seite 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

Seite 213 - Camera.setQuality

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

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

Seite 215 - Camera.setMode

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

Seite 216 - Camera.setMotionLevel

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

Seite 217

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

Seite 218

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

Seite 219 - LocalConnection (object)

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

Seite 220

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

Seite 221 - LocalConnection.allowDomain

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

Seite 222

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

Seite 223 - Description

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

Seite 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

Seite 225

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

Seite 226 - LocalConnection.onStatus

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

Seite 227 - LocalConnection.send

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

Seite 228

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

Seite 229 - Microphone (object)

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

Seite 230 - Microphone.activityLevel

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

Seite 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

Seite 232 - Microphone.get

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

Seite 233

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

Seite 234

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

Seite 235 - Microphone.name

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

Seite 236

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

Seite 237 - Microphone.onStatus

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

Seite 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

Seite 239

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

Seite 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

Seite 241

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

Seite 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

Seite 243

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

Seite 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

Seite 245

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

Seite 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

Seite 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

Seite 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

Seite 249

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

Seite 250 - • The server is running

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

Seite 251 - See also

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

Seite 252

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

Seite 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

Seite 254

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

Seite 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

Seite 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

Seite 257

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

Seite 258

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

Seite 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

Seite 260 - NetStream.setBufferTime

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

Seite 261

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

Seite 262

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

Seite 263 - Availability

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

Seite 264

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

Seite 265 - NetStream.publish

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

Seite 266

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

Seite 267

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

Seite 268 - NetStream.seek

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

Seite 269

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

Seite 270

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

Seite 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

Seite 272

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

Seite 273

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

Seite 274

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

Seite 275

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

Seite 276

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

Seite 277

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

Seite 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

Seite 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

Seite 280

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

Seite 281

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

Seite 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

Seite 283

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

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

Seite 285

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

Seite 286

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

Seite 287

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

Seite 288 - SharedObject.send

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

Seite 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

Seite 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

Seite 291 - Video (object)

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

Seite 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

Seite 293

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

Seite 294

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

Seite 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

Seite 296

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

Seite 298 - NetStream information objects

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

Seite 299 - Appendix108

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

Seite 300

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

Seite 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

Seite 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

Seite 303

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

Seite 304

Contents4

Seite 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

Seite 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

Seite 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

Seite 308

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

Seite 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

Seite 311

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

Seite 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

Seite 313 - Application.clients

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

Seite 314 - Application.name

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

Seite 315 - Application.onAppStop

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

Seite 316 - Application.onConnect

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

Seite 317

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

Seite 318 - Application.onDisconnect

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

Seite 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

Seite 320 - Application.registerClass

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

Seite 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

Seite 322 - Application.rejectConnection

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

Seite 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

Seite 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

Seite 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

Seite 326 - Client.agent

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

Seite 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

Seite 328

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

Seite 329 - Client.getBandwidthLimit

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

Seite 330 - Client.readAccess

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

Seite 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

Seite 332 - Client.setBandwidthLimit

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

Seite 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

Seite 334 - NetConnection (object)

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

Seite 335 - NetConnection.addHeader

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

Seite 336

Chapter 348

Seite 337

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

Seite 338 - NetConnection.isConnected

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

Seite 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

Seite 340

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

Seite 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

Seite 342

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

Seite 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

Seite 344 - SharedObject.close

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

Seite 345 - SharedObject.get

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

Seite 346

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

Seite 347 - SharedObject.getProperty

macromedia™®Developing CommunicationApplicationsMacromedia Flash™ Communication Server MX

Seite 349 - SharedObject.name

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

Seite 350 - SharedObject.onStatus

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

Seite 351

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

Seite 352 - SharedObject.purge

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

Seite 353 - SharedObject.resyncDepth

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

Seite 354 - SharedObject.setProperty

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

Seite 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

Seite 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

Seite 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

Seite 358 - Stream.get

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

Seite 359 - Stream.onStatus

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

Seite 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

Seite 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

Seite 362 - Stream.record

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

Seite 363 - Stream.send

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

Seite 364 - Stream.setBufferTime

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

Seite 365

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

Seite 366

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

Seite 367

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

Seite 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

Seite 369

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

Kommentare zu diesen Handbüchern

Keine Kommentare