1. Right-click the toolbox and select "select items." From the shortcut menu. In the displayed window, select the "COM Settings" tab,
Select Shockwave Flash Object, check it, and click "OK.
2. shockwave Flash Object appears in the toolbox. Drag it to the form to use it.
01 using System;
02 using System. Collections. Generic;
03 using System. ComponentModel;
04 using System. Data;
05 using System. Drawing;
06 using System. Text;
07 using System. Windows. Forms;
08 using System. IO;
09
10 namespace FlashDemo
11 {
12 public partial class Form1: Form
13 {
14 public Form1 ()
15 {
16 InitializeComponent ();
17}
18
19 private void Form1_Load (object sender, EventArgs e)
20 {
21 axShockwaveFlash1.Movie = Directory. GetCurrentDirectory () + "/demo2.swf"; // note that the full path must be used.
22}
23
24 private void button#click (object sender, EventArgs e)
25 {
26 axShockwaveFlash1.StopPlay ();
27}
28
29 private void button2_Click (object sender, EventArgs e)
30 {
31 axShockwaveFlash1.Play ();
32}
33}
34}
Author: Jungle listening rain