Open Software & Updates from the Dash or the System Settings menu.
Switch to the Other Software tab and check the Canonical Partners repository.
Refresh your software sources when prompted.
Open a terminal and run the following command: sudo apt-get install adobe-flashplugin
Restart your web browser and enjoy playing SWF files.
You can also download the standalone Flash Player Projector from Adobe's website and run it from your file manager or terminal.
Method 2: Use Gnash SWF Viewer
Gnash is a free and open source SWF player that can run most SWF files up to version 7. It also supports some features of SWF version 8 and 9. Gnash can be used as a standalone application or as a plugin for Firefox, Konqueror, and Opera browsers. To install Gnash, follow these steps:
Open a terminal and run the following command: sudo apt-get install gnash
To use Gnash as a standalone application, run it from the Dash or the terminal with the following command: gnash filename.swf, where filename.swf is the name of the SWF file you want to play.
To use Gnash as a browser plugin, restart your browser and open the SWF file from your file manager or from the internet.
Note that Gnash may not support some languages or some advanced features of SWF files.
Method 3: Use Lightspark SWF Player
Lightspark is another free and open source SWF player that aims to support newer versions of SWF files (up to version 11). It also supports ActionScript 3.0 and hardware acceleration. Lightspark can be used as a standalone application or as a plugin for Firefox and Chromium browsers. To install Lightspark, follow these steps:
Add the following PPA to your software sources: ppa:sparkers/ppa
Open a terminal and run the following commands: sudo apt-get update
sudo apt-get install lightspark browser-plugin-lightspark
To use Lightspark as a standalone application, run it from the Dash or the terminal with the following command: lightspark filename.swf, where filename.swf is the name of the SWF file you want to play.
To use Lightspark as a browser plugin, restart your browser and open the SWF file from your file manager or from the internet.
Note that Lightspark is still in development and may not work with some SWF files or websites.
Conclusion
In this article, we have shown you how to play SWF files on Ubuntu 12.04 using different methods. You can choose the one that suits your needs and preferences. We hope you found this article helpful and informative. If you have any questions or feedback, please leave a comment below.
a104e7fe7e