User Guide
516 Using the External API
Overview of the Introvert IM C# Application
This example application represents two instant-messaging client programs (one within a
SWF file and another built with Windows Forms) that communicate with each other. The
user interface includes an instance of the Shockwave® Flash ActiveX control, within which the
SWF file containing the ActionScript IM client is loaded. The interface also includes several
text fields that make up the Windows Forms IM client: a field for entering messages
(
MessageText), another that displays the transcript of the messages sent between the clients
(
Transcript), and a third (Status) that displays the availability status as set in the SWF IM
client.
Including the Shockwave Flash ActiveX control
To include the Shockwave Flash ActiveX control in your own Windows Forms application,
you must first add it to the Microsoft Visual Studio Toolbox.
To add the control to the toolbox:
1. Open the Visual Studio Toolbox.
2. Right-click the Windows Forms section in Visual Studio 2003 or any section in Visual
Studio 2005. From the context menu select Add/Remove Items in Visual Studio 2003
(Choose Items... in Visual Studio 2005).
This opens the Customize Toolbox (2003)/Choose Toolbox Items (2005) dialog box.
3. Select the COM Components tab, which lists all of the available COM components on
your computer, including the Flash Player ActiveX control.
4. Scroll to Shockwave Flash Object and select it.
If this item is not listed, make sure that the Flash Player ActiveX control is installed on
your system.