Easy way to run any SWF in browser

sanjurodlc

New Member
Mar 20, 2019
3
5
I had some trouble getting the TiTS and CoC SWFs to play offline, so I made a small HTML file to run them. So far it's working on Chrome and Edge (Edge may need you to go into about:flags and change Allow Adobe Flash Player localhost loopback or it'll not have access to the SWF). No clue if it works on Firefox, Opera or any other browsers.

1- Create a text file anywhere you want, open it and paste the following code:
HTML:
<!DOCTYPE html>
<html>
 <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>* {margin:0; padding:0; width:100%; height:100%; overflow:hidden;}</style>
 </head>
 <body>
  <embed src="TiTS_0.7.265.swf">
 </body>
</html>

2- Before saving and closing it, change the name of the SWF from TiTS_0.7.265.swf to whatever the name of the SWF file you want to play is.

3- Save it and rename to .html instead of .txt.

4- Put the SWF in the same folder the HTML is, otherwise it'll not find the SWF file. (feel free to enter a absolute or relative path to your file as the src=, but I think it just makes things more complex without need)

Hope this helps people run the games offline without the need to download Adobe's standalone Flash Player or use the AIR executable, which is a folder with a lot of files and subfolders that just bothers me a lot for no logical reason at all... or maybe because it all can be just 2 files, a html and a swf.