I remember that when I first learned Delphi, the first program was a small software that played flash.
Today, I implemented this applet in C.
The principle of playing a Flash animation is to reference the DLL of flash and use it for playback.
Add this control to the toolbox:
1. Right-click the toolbox and select "choose items..." from the shortcut menu. In the displayed window, select the "COM components" tab,
Select Shockwave Flash Object, check it, and click "OK.
2. Drag a flash control from toolbox to form.
3. Add code.
Private void form1_load (Object sender, eventargs E)
...{
Axshockwaveflash1.movie = application. startuppath + "// music.swf ";
Axshockwaveflash1.play ();
}
Note: The complete path must be passed to the movie attribute of the flash control.
In addition, there is a property that I did not test.
Embedmovie: whether to embed data into program resources.