Blake Xavier
Blake Xavier

Reputation: 85

Playing .swf file in 2021?

How would I go about playing a .swf file in 2021 with C#? "Shockwave flash object" is not available as a choice for me in Visual Studio 2019. Is there any other way?

Upvotes: 3

Views: 5297

Answers (2)

skywalker
skywalker

Reputation: 1300

Maybe you could use Ruffle (https://ruffle.rs/), which is a Flash emulator that can run in a browser using WebAssembly. Then, you could embed the "website" into your application by some web view API (not sure what because I'm not really familiar with C#, but maybe something like CEF (here or one of the C# bindings) or some Microsoft web thing).

Upvotes: 0

natenho
natenho

Reputation: 5591

The short answer is: No, but there is a possible workaround if you are really obsessed with your intent

The Shockwave flash object (Flash*.ocx) is an Activex Component and was part of Adobe Flash Player Plugin, officially removed from Windows in KB4577586 in 2020. It was not part of Visual Studio itself.

Refer to Adobe Flash Player EOL General Information Page and Microsoft Announcement: Update on Adobe Flash Player End of Support

The only way to use it is finding a way to manually restore it i.e. installing an old version, as suggested by this detailed article. So you could try to reinstall Flash 32.0.0.371 using this archived version in your current Windows environment but honestly I don't know how the OS will behave. Once installed, you would be able to see "Shockwave flash object" back in components list of any Visual Studio version.

Upvotes: 4

Related Questions