in

ASP.NET Weblogs

Tim Walters .NET Blog

Microsoft .NET, along with XML, XSL, XSD, SQL and other cool stuff

.NET Compact Framework and embedded Flash - at last!

I've been trying to work out a way of doing this for a while now, and the only solution to date seemed to be using Intelliprog's HTMLViewer control. Sure, these guys need to make money, but that's some rather aggressive licensing for a simple wrapper!

Imagine if I wanted to make a small Shareware app, and I wanted to host some HTML (with Flash in it of course!) in there... If I plan to sell 100 copies (and assuming I understand the pricing info at the bottom) I'm up for $US 149.99. If I was only charging $US 3 for my app then half that money is going just to the licence of a simple little wrapper.

I was ready to give up, when I spotted something sweet and wonderful on the GotDotNet Samples feed (subscribed!). This HTMLViewer sample does everything I need, although there were a few errors in the code provided I posted comments on how to fix it. Being that it's a sample, it's got a great price tag - FREE!

I did a quick test of loading HTML with Flash in it and it worked like a charm!

Now I just wonder if there's a way to get/send commands to the Flash object in the hosted HTMLViewer?

Ahh, the world is a nice place again.

Comments

 

Selma said:

Hi,

I wanted to embed flash objects and videoes in my compact framework application,too.

I have read the article

msdn.microsoft.com/.../aa446515.aspx

But unfortunately i haven't achieved to run a flash application.

I have followed the steps below:

1-) I have installed Shockwave Flash player control by Macromedia both my development machine and sbc.

2-) Then i have added the dll after changing it to Flash.dll.

3-)And i have run the command below:

AxImp.exe C:\WINDOWS\system32\wmp.dll /source

And 3 files have occured as it is mentioned in the article.

4-)I have added the WMPLib.dll reference to the project.

But (as it is said in the article),no components have added to the toolbox.And when i wanted to add any dll (flash,WMPLib.dll ),i have got the error as being unsuitable for adding.

5-)Anyway,i wrote something as below:

ShockwaveFlash sf = new ShockwaveFlash();

sf.LoadMovie(1, "c:/unicycle.mpeg");

sf.Play();

But i got error when deploying to the wince 5 installed sbc.

What is the problem?

Thanks in advance.

June 13, 2008 5:41 AM

Leave a Comment

(required)  
(optional)
(required)  
Add