Using Director > Playing Movies over the Internet > About creating multiuser applications > Using multiuser behaviors

 

Using multiuser behaviors

The Library palette includes eight Multiuser behaviors that assist you in creating multiuser applications. To access the Multiuser behaviors from the Library List, choose Internet > Multiuser.

Director Multiuser behaviors include the following:

Connect to Server connects your user to the Shockwave Multiuser Server. You drag the Connect to Server behavior to the sprite your user will click to establish a server connection. You can attach this behavior to any type of sprite; it's usually attached to a button or bitmap. For additional information, see Connecting users to the Multiuser Server.

Disconnect From Server lets your user disconnect from the Shockwave Multiuser Server on MouseUp. In the behavior parameters, you can specify a marker in the Score to go to after your user disconnects. You can attach the Disconnect from Server behavior to any type of sprite.

You attach the Send Chat Button behavior to the sprite that your user will click to send information to the Multiuser Server. You can attach the Send Chat Button behavior to any type of sprite. In the behavior parameters, you select the sprite that contains the information to send.

Whiteboard (Shared Canvas) is a behavior that works with the Canvas behavior and with other paintbox behaviors. You can attach the Whiteboard (Shared Canvas) behavior only to a bitmap sprite.

You attach the Chat Output behavior to the field or text sprite that displays text that other chat members send. Behavior parameters include the ability to add a welcome message and the ability to specify the total number of text lines that will appear in the text output area.

Chat Input is the behavior you attach to the text or field sprite in which your user enters information.

You can attach the Display Group Member Names behavior to a sprite to display a list of group members. You can attach this behavior to a field or text sprite.

By attaching the Display Group List behavior to a sprite, you're including functionality that displays a list of groups, and the members within the group. You can attach this behavior to a field or text sprite.

For more information on using behaviors, see Behaviors overview.