Call flash in Delphi

zhaozj2021-02-11  198

----------------------- Wen Dark Cat ---- This article refers to the Delphi World's Dae Weard Two Heroes Views. ---- I didn't intend to put this problem online, I thought everyone will know. Later, friends were suggested that many people learned Flash, I really want to know how to call Flash in Delphi. I talked about it and put it on the home page. ---- If your computer has installed Flash, it is very simple. If you haven't installed yet, then light downloads the flash plugin online, then start your delphi, then the Component menu item Select Import ActiveX Control ..., next to the Import ActiveX Control item will have SockWave Flash (version number) The appearance appears, select it, press the Install ... button. ---- Now your Component panel has ShockWaveflash controls, it's not a big difference in your usage and other controls, making a simple example. ---- Create a new project, put a Button and an OpenDialog control on Form, and then put the ShockWaveFlash control. OpenDialog is used to open the flash file (* .swf), button's onclick event is as follows: Begin ---- OpenDialog1.execute; ---- SWF: = Opendialog1.FileName; ---- shockwaveflash1.movie:=swf; --- Shockwaveflash1.play; end; ---- Compile, you can open the dialog with the button, select the * .swf file.

转载请注明原文地址:https://www.9cbs.com/read-4226.html

New Post(0)