Can I add Flash movie to C# project?

  • Thread starter Thread starter VMI
  • Start date Start date
V

VMI

I asked this question some time ago, and I received a reply, but I never
followed up on the suggestion. That's why I'm posting again...

I'm trying to add a Macromedia Flash movie to my C# windows project so that
I can use it as a screensaver. I was told that the easiest way would be to
add a WebBrowser control to my Windows Form and then have it load the Flash
movie, but I'm not sure how to do this. I have VS.Net 2005.
Also, since I plan on selling this screensaver, what must the client PC have
installed (besides the .Net framework)? Are there any licencing issues with
the Flash movie?

Thanks.
 
VMI,

I believe that the flash player is exposed as an active X control. If
this is the case, then wrapping it in a webbrowser would be a waste. You
should just embed the active x control on your form, and then display the
form as a full screen app for your screen saver.

You can just set a reference to the OCX/DLL that the control is expose
in for .NET to create a wrapper. You have to be sure that flash is
installed on the client machine as well as your app.

Hope this helps.
 
VMI,
Actually I think that was yours truly, and I must have done you a
disservice. The COM OCX files, if you have Flash 8 player installed would be
at:

C:\WINDOWS\system32\Macromed\Flash

--the correct one will show up in your toolbox as "Shockwave Flash Object".
You can set a movie location and address it programmatically on your Windows
Form screensaver to your hearts' content.

Have fun!
Peter
 
Thanks for the info.

The Flash movie basically displays several images (one after the other) so
that when time's up for the current image, it'll scroll to the left until it
disappears from the screen while the next image scrolls to the left until it
fills up the screen.

For this type of simple animation, should I use Flash or should I add the
effects using .Net? I'm asking because I've read the Macromedia doesn't
'officially' support Flash movies on Windows Forms and there's a possibility
that they won't support it next version. Also, I don't think I can install
the Flash 8 player from the CD without Macromedia's approval. I would have
to tell the potential buyers to download and install the player.

Thanks.
 
Back
Top