Does anyone know what libraries I have to install to play .swf files?
Here is Solutions:
We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.
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
You can use the standalone flashplayer by Adobe :
But you can also open the file in your Internet browser if you have installed flash plugin.
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.
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.
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)
In order to locally open
.swf file with more recent Firefox versions
78+), old methods wouldn’t work, e. g. changing/replacing entries of
application/vnd.adobe.flash.movie with appropriate entries for
application/x-shockwave-flash (or creating the latter, where the former was missing).
in FF’ Shockwave Flash plugin’s settings, enabling
applying the above in FF’ profile folder’s ‘mimeTypes.rdf’
~/.mime.types with entry:
application/x-shockwave-flash swf swfl
vnd.adobe.flash.moviewith that entry in
replacing/adding an appropriate entry for
So, even with
xdg-mime query default application/... pointing to
.desktop starter configuration file, for both
mime types, and FF correctly showing a choice to execute ‘*.swf’ with
Flash Player, it failed.
As it turned out, the following steps were required, to finally be able
to execute local
.swf files in Firefox (with some of the above maybe
still required beforehand):
Replace following entry in FF profile folder’s file handlers.json
(mind replacing exactly between the correct 2 commata!)
Disconnect from the network (!)
Temporarily reset the desktop’s system date, back to before the official EoL date (< December 31, 2020) of FlashPlayer, or else it will attempt redirecting to Adobe’s EoL website (!)
Now finally ‘enjoy’ playing your favorite local SWF / FlashPlayer files!
After finished, restore the original system date (!)
There might be a problem with all add-on’s disabled after a restart, if
restoring the original system date before hasn’t occured before
(or while FF trying to update its components, unless disabled before).
To fix this, reset all of Firefox’ registry entries, starting with
It might be arguably a ‘good idea’, to store away a copy of the last version
(32.0 r0 / 18.104.22.1685) of Shockwave Flash player’s binary from
/usr/lib/flashplayer-mozilla/libflashplayer.so – you never know, it
might vanish from the repositories someday. But then, Mozilla could also blacklist the plugin completely.
Also, if somehow it doesn’t work out, you might check for the following
registered mime type in the
Shockwave Flash plugin’s settings in FF:
application/x-shockwave-flash (Shockwave Flash: swf)
about:preferences#general Applications, search for ‘Flash’; it
Flashplayer | always ask.
To execute a local
.swf files, you’ll have to click through several
security warning popups (2-4), each time, especially, with
Due to the notorious security problems history with Flash Player, use this method at your own risk! It’s generally a bad idea, and most especially, to download new
.swf files from dubious websites and executing them. This method should be used with caution, and only if you ‘know what you’re doing’ !
Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂