|
||||||||||||||
|
||||||||||||||
|
![]() |
How to play flash movie inside applicationsActiveX ShockwaveFlash plays flash movies, it is in the library flash.ocx of Macromedia, Inc. (earlier versions were called swflash.ocx). So the first requirement is this library must be installed. As a rule, it is in the folder [Win_system]\Macromed\Flash\, for example C:\Windows\system32\Macromed\Flash\. If not you should install the one before starting of application. Also, you should use ActiveX component TShockwaveFlash in your application. It contains as property Movie so other various methods to manage movie playing - Play, Stop, Rewind etc. How to install Flash.ocx into systemMacromedia provides the on-line installing of player at its web-site. So you can install the newest version of the player free clicking this link. Once everyone, surfing Internet, opens site with Flash and if the Flash player has not been installed yet, the browser offers to do that, so it is very probable that the Flash players are on almost all computers connected to Internet. If the application must be installed there are some tips how to do that. {Register the OCX File} How to install Flash.ocx into Delphi IDEIn Delphi click the menu Component -> Import ActiveX Control... Choose "Shockwave Flash" from the list of available objects or brows the file Flash.ocx and import it.
The TShockwaveFlash component will appear in the ActiveX tab.
Simple playingFor example, there is a task to play sample.swf which is in the same folder that the application is. Put the TShockwaveFlash component to the form and rename the one into FlashPlayer. Then: procedure TmDemo.FormCreate(Sender: TObject); |
Copyright 2004-2008 FeatherySoft, Inc. All rights reserved |