Is there a way you can run Ruffle offline? I've tried this method with ruffle.js but it didn't work because the file: protocal isn't supported.
<html>
<head>
<title>Goime 500</title>
</head>
<body>
<div id="container"> </div>
<script src="ruffle.js"></script>
<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.load({
url: "goime.swf",
backgroundColor: "#000",
});
player.style.width = "450px";
player.style.height = "450px";
});
</script>
</body>
</html>
An iframe wouldn't work because this is for offline use and not online. Any help would be appreciated. Thanks! :D