47

Does anyone know what libraries I have to install to play .swf files?

20

You can use the standalone flashplayer by Adobe : https://help.ubuntu.com/community/FlashPlayerStandalone

But you can also open the file in your Internet browser if you have installed flash plugin.

| improve this answer | |
  • 1
    Ok, I guess I had some sort of configuration problem. When I tried to install the flash plug-in into my browser it said it was already installed, but I still couldn't play the videos. An uninstall/reinstall fixed my problem. – jumpnett Oct 14 '10 at 18:27
  • It did not work when I tried to open my swf on chrome. – Dimitri Kopriwa Sep 10 '17 at 14:43
  • If Googlers don't want to do this accepted answer, check out this one: askubuntu.com/a/467892/374783 – user1717828 Feb 18 '18 at 18:56
30

Sorry, that didn't post right.

Edit /usr/share/mime/packages/freedesktop.org.xml file and change

<mime-type type="application/vnd.adobe.flash.movie">

to

<mime-type type="application/x-shockwave-flash">

and then run

sudo update-mime-database /usr/share/mime

and then reinstall flash player.

| improve this answer | |
  • 2
    The real solution to play swf (shockwave flash) files in browsers while they just save or ask to save local swf files. (Pushing some keywords here.) – AliN Sep 10 '14 at 23:33
  • 5
    No need to reinstall flash player here. After updating mime database it works. – AliN Sep 10 '14 at 23:35
  • this works like a charm.. – Gaurav Sharma Dec 29 '14 at 11:13
  • 1
    Tested on Ubuntu 16.04 + Chrome. It works. Thanks a lot! – jap1968 May 9 '16 at 11:22
30

.swf files can be opened with gnash swf viewer. If you don't have it:

sudo apt-get install gnash
| improve this answer | |
1

How to open a .swf-file with Firefox browser

Right-click on the file. Choose Properties > Open With, then click on show other applications. Now you can add firefox in the list. Set it as default. Now double-click on the .swf-file.

It will open in the Firefox and play itself. I assume the flashplayer-plugin is already installed in Firefox, else it will ask you to install flashplayer-plugin. Follow the steps and you are good to go.

| improve this answer | |
  • 7
    This answer does not work in the latest version of Firefox. – Riking Nov 28 '17 at 8:02
1

Install swfdec-gnome

sudo apt-get install swfdec-gnome

Use latest Google Chrome (which has inbuilt flash support)

| improve this answer | |
1

What worked for me is going to the adobe site and then selecting

Download the Flash Player Projector (64-bit)

Then extract the contents,inside the extracted folder there is a file called flashplayer open it. Then CTRL+O to open the file locally isntead of typing it as a url.

| improve this answer | |
1

Just found worked solution to play flash with firefox from ubuntuforums

Here are steps in resume:

Create file ~/.mime.types with content:

application/x-shockwave-flash       swf swfl

Disable setting plugins.http_https_only (make it equal to false) in firefox by typing: about:config in URL box and finding this setting with Ctrl+f.

Now you can open .swf file from file manager by Open With Firefox. Or open it from firefox with Ctrl+o.

PS. you'll need to accept the warning about accept the risk and restart firefox once setting is set to false.

| improve this answer | |
0

Another solution if you do not want to open it in web browser is you can install shockwave player for windows in Ubuntu via wine. I installed it and it's work fine.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.