Using Director > Playing Movies over the Internet > About creating multiuser applications > Connecting users to the Multiuser Server |  |

Connecting users to the Multiuser Server

To let your users connect to the Multiuser Server, you can use the multiuser behavior included in the Library palette. You can also write Lingo scripts that configure the Multiuser Xtra and establish communication with the server. For more information about writing Lingo for multiuser applications, see Using the Shockwave Multiuser Sever on the Director Support Center.

Before using the `Connect to Server` behavior, you should have markers in the Score that your users will go to under different circumstances. For example, you may want the playback head to loop at a Waiting marker while a connection is attempted, then advance to a Mainchat marker when the connection is established.

Your Director movie should also contain the cast members your multiuser movie requires, such as the fields and graphics for the Connect and Disconnect buttons, and the cast members that will contain the input and output information.

To use a behavior that connects users to the server:

1 | If the Library palette is not open, choose Window > Library Palette.
2 | In the Library palette, click the Library List menu and choose Internet > Multiuser.
3 | Drag the `Connect to Server` behavior to the sprite on the Stage that your user will click to establish a server connection.
4 | In the Parameters dialog box, use the three Which Member pop-up menus to select cast members that will contain the user name, contain the user password, and display errors.
5 | Use the three Which Marker pop-up menus to select the markers in the Score that your users will go to while connecting, when connected, and if the connection fails.
6 | In the Server Address field, enter the server IP address. See Launching the Shockwave Multiuser Server.

Note: You can also connect to the server that Macromedia hosts, which allows 16 simultaneous connections, by typing trialserver.macromedia.com in the Server Address field.

7 | Verify that the Server Port Number field contains 1626 as the default.
8 | Either accept the default name for your movie in the Movie ID String field, or enter a new name.
9 | To specify encryption during your user's login, select Encryption and enter the encryption key string in the next field. (You must also enter the encryption key string in the Multiuser Server config file.)
10 | When you finish setting the parameters, click OK.