Purpose
With the end of support for Adobe Flash Player in 2020, all Flash contents attached in Confluence page can no longer be played. This may have affected some customers, who have been using swf attachments.
Swf2js is a tool that converts swf files to HTML in real time. You can use it to play swf attachments again instead of Adobe Flash Player.
Solution When you have Internet access
-
Enable HTML macro plugin.
-
Create a test page. Upload a sample swf file (sample.swf) to the page.
-
Move to attachments screen, and copy the URL of the uploaded attachment.
<span>Example: <a href="https://confluence.abc.com/download/attachments/31752200/sample.swf" target="_blank" rel="nofollow noopener noreferrer">https://confluence.abc.com/download/attachments/31752200/sample.swf</a></span>
In the sample JS code, swf2js.js is fetched from the swf2js site (https://swf2js.com/assets/js/swf2js.js), so Internet access is required. If you do not have Internet access, please refer to the next section.
Solution When you do not have Internet access
-
Please download it from "https://swf2js.com/assets/js/swf2js.js" in advance.
-
Following below page, include the downloaded swf2js.js into Confluence.
-
Basically, JS code can be written as the sample in the "When you have Internet access" section. You need to rewrite below part.
<span>src="<a href="https://swf2js.com/assets/js/swf2js.js" target="_blank" rel="nofollow noopener noreferrer">https://swf2js.com/assets/js/swf2js.js</a>"</span>