tags:

views:

1066

answers:

5

Where can I get a nice & free Flash player component for Delphi? The ones I know of are quite pricey! Or what is the best way to play Flash files in Delphi?

+8  A: 

Have you considered directly embedding a Flash player instance as an ActiveX object? Or are you looking for a Delphi-native wrapper?


Update

Tutorial: Running Flash animations with Delphi

Thanks Re0sless for providing the link and Scott W for alerting me about it.

Ates Goral
there is a how to do this here http://delphi.about.com/od/graphics/l/aa040103a.htm
Re0sless
This is a very valuable comment. @Ates, could you update your answer to include the link? Otherwise, @Re0sless, you may want to list as a separate answer.
Scott W
+4  A: 

We are actually doing this just now. We just used the TWebBrowser component and loaded an locally installed HTML page in which played a flash video (a locally installed swf file) if the user has flash installed. Just the same way any website would do it.

Have a look at SWFObject for details on how to embedded a .swf file in a web page and how to detect if flash is installed or not.

Jamie
What is the point of embedding TWebBrowser and then putting swf inside when you can embed an ActiveX object directly?
Max
Yeah, good point. Had not thought about the ActiveX route. Is it easy enough to handle the case where Falsh is not installed or not at the correct version?
Jamie
I took this approach also (embedded TWebBrowser), but I needed to show a HTML document which includes flash. There is a TEmbeddedWB component (http://www.bsalsa.com/product.html) which exposes some nice properties that tWebBrowser doesn't.
skamradt
+1  A: 

You can embed the Flash Activex directly over your Delphi form as any other Activex, without the need of a TWebBrowser. You can even import the Activex wrapped as a VCL component (Components -> import) and then use it.

http://delphi.about.com/library/howto/htaddactivex.htm

SalvadorGomez
+2  A: 

You can fairly easily import it as an activeX control. I made a movie on how to do this: Movie #28 - Flash within Delphi. You can also check out the article by Felix Colibri: Writing a Flash Player in Delphi. Additionally check out the article on About.com

Alister
@Alister - I really liked your Movie #28... simple easy to follow. Thank you
Cape Cod Gunny
@Cape Cod Gunny - thanks, I've been meaning to make more, but have been busy lately.
Alister
A: 

i agree embeding activex as a vcl is quite powerfull, but how do i disable the function of the main activex when right-clicking menus on the movie? it is annoying when sometimes common user accidently click and resizing the movie and/or go to adobe website its make them confuse. i allready disable the menus from flash.but seems still exist on "about" section. i want it disapear completely :(

(sorry 4 my poor english)