Inserting Flash into HTML

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:

  1. choose file ~> Open the Flash movie
  2. choose file ~> Export Movie
  3. Name the file “yourmovie.swf”. Choose the location where the file is to stored (in your Web folder) and click OK.
  4. 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.

13 thoughts on “Inserting Flash into HTML

    1. 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!

  1. 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

  2. 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:

    Thank you for your help! 

    1. Hello Zvonko,

      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.
      Kindest Regards,
      Scott M

  3. 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?


  4. 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?

  5. Hi I want to know how can I insert flash in this site – https://*********.com/how-a-fuel-cell-vehicle-works-animated-infographic/

    1. Hello Gaurav,

      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?

      Thank you,

Was this article helpful? Let us know!