Skip to content

Instantly share code, notes, and snippets.

@MikuroXina
Created October 29, 2018 13:30
Show Gist options
  • Save MikuroXina/e127d4baa8f3ba782915dd315de919f2 to your computer and use it in GitHub Desktop.
Save MikuroXina/e127d4baa8f3ba782915dd315de919f2 to your computer and use it in GitHub Desktop.
Easy swf loader with the browser.
<!DOCTYPE HTML>
<html>
<head>
<title>SWF Loader</title>
<script>
function load_flash(files) {
let tag = document.getElementById("flash_root");
tag.src = files.item(0).name;
}
</script>
</head>
<body>
<input type="file" onchange="load_flash(this.files);" />
<object>
<embed id="flash_root" width=800 height=600 type="application/x-shockwave-flash" />
</object>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment