Search code examples
htmlflash

Embed Local .swf File in HTML


I'm trying to create a small website that has a large amount of .swf files. However, I can't figure out how to embed them. I plan on just placing them all in the same folder as the .html file and have them embedded on the website. I also want this to be portable, so it accesses the .swf files based on the folder rather than the whole file location. Is there a piece of code that I can just enter the name of the .swf file and have it be embedded?


Solution

  • Use embed in your HTML code :

    <embed src="myFile.swf"  height="800px" width="600px">
    

    source tutorial: html5 embed flash element