Give
the component an instance name of whiteboard_mc.
For the components to work properly, you have to place them
all on the same frame in your timeline.
Note: If you don't have the Flash Communication
Server components, you can easily download
them. Follow the instructions for adding them to your
FirstRun folder and then restart Macromedia Flash MX.
Adding the Connection Light and Simple Connect
components
To show that you've successfully connected to the server,
add the Connection Light component: Drag it onto the Stage
from the Components panel and set the instance name to light_mc.
You also need Simple Connect to manage the connection with
the server. Drag the Simple Connect component from the panel
and drop it onto the Stage. Select the component, go to
the Property inspector, and set the Application Directory
to rtmp:/whiteboard ("rtmp:/" references
the application path and "whiteboard" references the application
instance). This is the same folder that you created earlier.
Next click the Components field and add two new values:
whiteboard_mc and light_mc.
By doing this, you establish a connection between the Simple
Connect component and the server, and automatically initiate
the Connection Light and Whiteboard components.
You can now publish your movie and start using the Whiteboard
component with other users: |