Mohoch
Mohoch

Reputation: 2691

how to play flash in WPF application

I have a WPF application and I want to play flash movies in it.

I used the WInforms active X control as described in this link

It worked partially, but now whenever I run the application it crashes saying "InvalidActiveXStateException"

does anyone have an idea how to solve this?

Upvotes: 1

Views: 5025

Answers (2)

Mohoch
Mohoch

Reputation: 2691

I found a solution. You can use a AxShockwaveFlash. see this link

Upvotes: 0

TodK
TodK

Reputation: 1079

I would recommend adding a WebBrowser control to your WPF application and allow IE to load the URL of the Flash Movie directly; which in turn would load the Flash Plugin. You will need to build your WPF application as x86 only for this to work on x64 Windows.

Upvotes: 2

Related Questions