JavaScript EditorBest javascript editor debugger     Ajax website 

Main Page

Previous Page
Next Page

Embedding Flash

Flash is an animated image format from Macromedia (now part of Adobe) that is widely used on the Web.

To embed Flash:

Begin the object element with <object.

Use type="application/x-shockwave-flash" to indicate the MIME type for Flash animations.

Type data="filename.swf", where filename.swf is the name and location of the Flash animation on your server.

Specify the dimensions of your animation with width="w" height="h", where w and h are both values in pixels.

Finish the opening object tag by typing >.

Add <param name="movie" value="filename.swf" />, where filename.swf matches what you used in step 3.

Type </object> to complete the object.

Figure 18.48. To embed Flash, set the MIME type to application/x-shockwave-flash.

Figure 18.49. The Flash animation is embedded on the pagewithout the nonstandard embed.


  • This technique is based on the article Flash Satay by Drew McLellan in A List Apart (

  • Drew figured out a way to use small reference movies to help Flash animations stream properly with this technique. See his article for details.

  • Many people use a combination of object and the non-standard embed tag to insert Flash on a Web page. For more details, search for embed Flash on Adobe's site (

Previous Page
Next Page

JavaScript EditorBest javascript editor debugger     Ajax website