|
||||||||||||||
|
||||||||||||||
|
![]() |
There is a great solution for movies playing - the TFlashPlayerControl component, that is an alternative of TShockWaveFlash! TFlashPlayerControl features:
Creates flash-enabled applications which are ready to work even without the flash player activex installing Traditionally, there are many obstacles or annoyances that one encounters using Flash in Delphi applications. Delphi applications need flash.ocx/swflash.ocx installed in the system before it works; TFlashControl solves these problems and more! By default, the component uses the flash.ocx/swflash.ocx that has already installed on the system. You can use any source as ActiveX. So your application works even if the Macromedia Flash Player is not installed yet. Just use the FlashPlayerControl.LoadFlashOCXCodeFromStream method. The example how to load the flash.ocx control from the file is below: var Here is an example how to load flash.ocx control from TStream: {$RESOURCE 'res\flash.res'}
Using the component you can load a flash movie from any stream object just using LoadMovieFromStream (LoadMovie analogue) and PutMovieFromStream (Movie property analogue). Movies get loaded into the stream directly without any temporary files, so you can load any movie "on-the-fly" from any supported source. For example, put one or more flash movie(s) in the resource section of your application. Here is an example of how to load a flash movie from the resource: {$RESOURCE 'res\movie.res'} Here is another example created with SWF SDK: var Discuss TFlashPlayerControl in the forum. |
Copyright 2004-2008 FeatherySoft, Inc. All rights reserved |