Play Flash in Delphi

xiaoxiao2021-03-06  39

First, you have Flash Play Software (your IE can display flash). The reason why IE can display Flash is a SWFLASH.OCX control provided by Macromedia, which we can find it in Win98's $ Windows / System / Macromed / Flash or in WinNT / System32 / Macromed / Flash in Win2000. ActiveX controls are common in Windows, and Delphi also supports. First, you have Flash Play Software (your IE can display flash). The reason why IE can display Flash is a SWFLASH.OCX control provided by Macromedia, which we can find it in Win98's $ Windows / System / Macromed / Flash or in WinNT / System32 / Macromed / Flash in Win2000. ActiveX controls are common in Windows, and Delphi also supports. After running Delphi, select menu Component → Import ActiveX Control, find the SWFLASH.OCX file for installation. After the installation is complete, the TshockWaveFlash control appears in the ActiveX panel, which is the package of Delphi to swflash.ocx, now we can use this control to play Flash. Drag a flash, put it on the Form, specify its MOVIE attribute to D: / Test.swf, and press F9 to run. How, do you have a good job? Below, the author will specifically introduce the main properties, methods, and events of TshockWaveflash so that the reader is developed. TshockWaveFlash main properties are as follows: ReadyState: When reading a flash file, including 0 = loading, 1 = uninitialized, 2 = loading, 3 = interactive and 4 = completion; TotalFrames: The total frame number, only when readyState = 4 Access this attribute; Framenum: The frame currently played; playing: Play or suspend a flash; Quality: Specifies the current rendering quality, including 0 = low, 1 = high, 2 = autolow, 3 = autohigh; scalemode: Zoom mode, 0 = Showll, 1 = Noborder, 2 = ExactFit; AlignMode: Align mode, LEFT = 1, Right = 2, TOP = 4, Bottom = 8; BackgroundColor: Background Color, -1 is the default color; loop: Cycle; Movie: Specifies the Flash file path of the play, can be a URL.

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

New Post(0)