Required:
Flash Communication Server 1.5
Flash
Step 1:
Create a new folder called webchat in the c:\(Where ever you put your server files)\flash communication server mx\applications folder.
Step 2:
Open notepad file. Type: load( "components.asc" );
Save file as "main.asc" in the webchat folder.
Step 3:
Open Flash and save file as "webchat" in the webchat folder
From the Communications Components side bar:
3.1 Drag a SimpleConnect onto your flash page
3.2 Drag a SetBandwidth onto your flash page, in the properties box change the compenent name to band_mc
3.3 Drag a PeopleList onto your flash page, in the properties box change the compenent name to plist_mc
3.4 Drag a Chat onto your flash page, in the properties box change the compenent name to chat_mc
3.5 Drag an AVPresence onto your flash page, in the properties box change the compenent name to avp1_mc
3.6 Drag an AVPresence onto your flash page, in the properties box change the compenent name to avp2_mc
3.7 Drag a ConnectionLight onto your flash page, in the properties box change the compenent name to light_mc
Step 4:
Save your file
In the properties box of the SimpleConnect in your flash page, click communication connections.
4.1 Click the + sign six times in the values pop up menu, creating slots from 0-5
4.2 In Slot 0 type band_mc
4.3 In Slot 1 type plist_mc
4.4 In Slot 2 type chat_mc
4.5 In Slot 3 type avp1_mc
4.6 In Slot 4 type avp2_mc
4.7 In Slot 5 type light_mc
Save your file
Step 5:
In the properties box of the SimpleConnect in your flash page, change the Application Directory to rtmp:/webchat
Save your file
Step 6:
From the flash UI components, drag a push button onto your flash page.
In it's properties box change the label to "Clear Chat", change the Click Handler to clearHistory.
Step 7:
In the actions for frame 1 of layer name layer 1
Add: function clearHistory() {
this.chat_mc.clearHistory();
}
Save your file
Step:
Publish your work and test.


