----This article refers to the two heroes Amon and Pu Qingfeng on the Delphi World Monopoly Forum.
Opinion.
----It turns out that I didn't plan to post this kind of question online, I thought everyone would know it. back
My friend Liu Yun suggested that many people in their class learn Flash and would like to know how to use it in Delphi.
Call Flash in. I just talked about it and put it on the homepage.
----If your computer has Flash installed, it's very simple. If you haven't installed it yet, then
You can just download the flash plug-in from the Internet, then start your Delphi, and then Component
Select the menu item Import ActiveX Control..., then select Import ActiveX
The Control item will have Sockwave Flash (version number). Select it and click
Install... button.
----Now you have the ShockwaveFlash control in your Component panel. How to use it?
There is no big difference between the method and other controls. Let’s make a simple example.
----Create a new PRoject and put a button and an opendialog control on the Form
file, and then put the ShockwaveFlash control. opendialog is used to open Flash files (*.
swf), the button's onclick event is as follows:
begin
----opendialog1.execute;
----swf:=opendialog1.filename;
----shockwaveflash1.Movie:=swf;
----shockwaveflash1.play;
end;
----After the compilation is passed, you can use the button to open the dialog box and select the *.swf file.
.