Regarding hosting Flash ActiveX control in CF2.0

J

Jothishankar

Hi,

I saw Mr.Alex Feinman's webcast regarding "COM and DOT Interop in CF2"
at http://blog.opennetcf.org/afeinman/PermaLink,guid,1dfc3c39-d3cc-4faa-b5f6-cb5c9aed61dd.aspx

I have a question regarding the section on hosting activex controls in
CF2.0. I tried out what he had suggested and I was able to
successfully host a Flash player activex control for PPC inside a
CF2.0 C# application. But I am running into one problem.


I am building a projector application for a Windows CE 5.0 device. So
my requirement is that I need to embed the flash movie inside my
application. I tired to set the EmbedMovie property in the designer
and also specify the path of the flash file (I gave the path on the
development PC where the actual swf file is stored, assuming it is
going to embed it in the application during design time) for the Movie
property. But this does not embed the movie inside the application.



Is there something I am missing or is this not possible when we host
an activex control in CF2.0 by the method he had suggested?

Any help is greatly appreciated.

Thanks,
Jothishankar
 
P

Peter Foot [MVP]

Another approach which may work for you is to use the WebBrowser control and
create a local page with an embedded flash object.

Peter
 
J

Jothishankar

Another approach which may work for you is to use the WebBrowser control and
create a local page with an embedded flash object.

Peter

Hi Peter,

Thanks for the reply. Will I be able to embed the html page and the
flash file as part of the application itself? I want to create just
one exe file at the end - like a projector for a flash file.

If this is possible, then I can gladly use your approach.

Thank you.
 
P

Peter Foot [MVP]

The html file you can store as a resource and load into the WebBrowser by
setting the DocumentText property. The flash file would have to exist in the
file system. You could store it as an embedded resource but you'd need to
write it to a temporary file when you run your application.

Peter
 
J

Jothishankar

The html file you can store as a resource and load into the WebBrowser by
setting the DocumentText property. The flash file would have to exist in the
file system. You could store it as an embedded resource but you'd need to
write it to a temporary file when you run your application.

Peter

The main reason for integrating the flash file as part of the app, was
for security concerns. Since flash files can be decompiled back to the
source code, i did not want the flash file to be part of the file
system. I would like to load it directly from the memory.

I successfully embedded the flash movie in my unmanaged embedded VC++
application. But now, i am converting that app to .net and running in
to this problem.

Is there any other possible solution for this problem?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top