RuffleというJSで作られたFlashエミュレータを使えば、
SWFさえ残っていれば過去の作品も再生できる。コードは以下
<html>
<head>
<title>Ruffle</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
#container {
width: 100%;
height: 100%;
}
#play-button .icon, #unmute-overlay .icon {
max-width: 150px !important;
}
</style>
</head>
<body>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("container");
container.appendChild(player);
player.ruffle().load({
url:"hoge.swf",//ここを変える
autoplay: true,
"menu": false,
"contextMenu": "off",
"splashScreen": false,
});
player.style.width = "100%";
player.style.height = "100%";
});
</script>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<div id="container"></div>
</body>
</html>