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.

Share this Article