You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
Insert HTML macro into the test page. Write JS code into the HTML macro as following sample. In the JS code below, the first parameter of the swf2js.load method is the URL copied in the above step.
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.
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.
11 accepted answers