büşra
büşra

Reputation: 1

Hosting Flash movie in a WPF project

I want to host a SWF (Flash animation) in a WPF project.

I searched Google and found something. I tried that technique but had some troubles.

In this article, it says:

**Then, as mentioned in this posting, it is necessary to run AxImp.exe from the .net sdk on the Flash ocx to generate following files.

 1. AxShockwaveFlashObjects.dll 
    AxShockwaveFlashObjects.pdb 
    ShockwaveFlashObjects.dll 
    AxShockwaveFlashObjects.cs In Visual
    Studio, add the references to the
    AxShockwaveFlashObjects.dll and
    ShockwaveFlashObjects.dll generated
    by aximp**

But I couldn't understand this. Can anyone write it out step by step? I am new to WPF.

Upvotes: 0

Views: 1396

Answers (2)

Seneca
Seneca

Reputation: 212

Busra, take a look at AxShockwaveFlashObjects and ShockwaveFlashObjects from Flash ocx

I think that has what you are looking for. Essentially, you need to open a dos prompt, and run C:\Windows\SysWOW64\Macromed\Flash>"c:\Program Files (x86)\Microsoft SDKs\Window s\v7.0A\Bin\aximp.exe" Flash10n.ocx /nologo Generated Assembly: C:\Windows\SysWOW64\Macromed\Flash\ShockwaveFlashObjects.dll

Generated Assembly: C:\Windows\SysWOW64\Macromed\Flash\AxShockwaveFlashObjects.d ll

Keeping in mind, you're paths may very by if your machine is 32bit, and on where the visual studio sdk is installed on your machine.

@Blounty, I don't think that was his intent. He wants to run the actual flash file inside his WPF application.

Upvotes: 0

Blounty
Blounty

Reputation: 3358

you could look at the WebBrowser class. then have your flash on a html page that the browser control is pointed at.

Upvotes: 1

Related Questions