For more information on streaming audio and video, please visit our other article:
Streaming Audio/Video on your Site
How to insert your Flash movies into your website
After creating a Flash movie you normally go to File ~>Save As from the top menu to save your movie. Save the file as “yourmovie.fla“. We will show you how to add the Flash movie into your site.
To embed the Flash movie into an HTML page, you should go back to your Flash program and:
- choose file ~> Open the Flash movie
- choose file ~> Export Movie
- Name the file “yourmovie.swf”. Choose the location where the file is to stored (in your Web folder) and click OK.
- Open the HTML page where you want to insert your Flash movie. Insert this code:
<object width="550" height="400"></object> <embed src="somefilename.swf" width="550" height="400"></embed>
The width and height tags specify the frame of the movie, which you will need to adjust accordingly. This is the minimum code you need to embed a Flash movie in a browser. A broken icon will appear on the Web page if the user does not have the Flash plug-in installed.
Thoughts on “Inserting Flash into HTML”
The code does not work, swf file will not play when html file is loaded
I’m sorry that you’re having trouble. Flash is an outdated legacy format that is no longer widely used. This article is kept for the sake of reference, but may no longer apply. You will need to check the documentation for your flash software, but as a general troubleshooting principle I would suggest checking the filepath. The sample code provided on the page assumes a certain file name and that the SWF file is in the same folder as the page. If that is not the case, you will need to edit it to fit!
Note that with Chrome v62 when I come to this page I get a “This plugin is not supported” error.
Flash isn’t widely used or supported anymore and this article is no longer updated.
hi i have a .fla file and wanted to convert it to html5 . i alreadyalot of tools like wallby (it genrates compatibility warnings) and also use adobe flash tool but here i unable to find convert document type in command option .. so will you guid me how could i solve this issue . kind regards
There is not a free converter that I am aware of. I did find a reference to links that can help on the adobe forums.
I created a swf file and inserted it into my HTML using <embed> tag. The problem is that my animation now loads but is waiting to be run manually instead of automatically after a new page is opened. What am I doing wrong?
The web address: https://sretneveze.com/misli/horoskop/prvi-desno1.html
Thank you for your help!
I took a look at your code and do not see an embed tag. I do see an swf file on the page, but that plays automatically upon loading.
Hello. I have flash version 18,0,0,209 installed on ym computer. When I try and upload a flash file via html editor it works (is visible once saved) in I.E. 11, but when I use chrome, or firefox the flash doesnt load. The rest of the page loads normally, i put the cursor over where the video should be and right click and all it says is, “Movie not loaded…”. Any idea as to what might be going on here?
Can you provide a link for us to test/replicate the issue?
This section needs to be updated. Instructions for embedding adobe swf files, especially with many of the recent updates and, the incompatibiity issues with at least 2 known browsers with Adobe Flash Players.
I was able to embed swf for a full flash content website, and now, nothing. Sure, the embedded coding is displayed as a source, but detecting the embeds’ requirements nowadays are problematic.
Can you provide an update for the year and month, 2015 November?
Hi I want to know how can I insert flash in this site – https://*********.com/how-a-fuel-cell-vehicle-works-animated-infographic/
Thank you for contacting us. The above guide should walk you through inserting flash into your site. Are you having trouble with a specific step?