Does anyone know what libraries I have to install to play .swf files?
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.
Sorry, that didn't post right.
Edit /usr/share/mime/packages/freedesktop.org.xml file and change
and then run
sudo update-mime-database /usr/share/mime
and then reinstall flash player.
.swf files can be opened with
gnash swf viewer. If you don't have it:
sudo apt-get install gnash
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
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.
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.
sudo apt-get install swfdec-gnome
Use latest Google Chrome (which has inbuilt flash support)
Just found worked solution to play flash with firefox from ubuntuforums
Here are steps in resume:
~/.mime.types with content:
application/x-shockwave-flash swf swfl
plugins.http_https_only (make it equal to false) in firefox by typing:
about:config in URL box and finding this setting with
Now you can open .swf file from file manager by Open With Firefox. Or open it from firefox with
PS. you'll need to accept the warning about accept the risk and restart firefox once setting is set to false.