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 (www.alistapart.com/articles/flashsatay).

  • 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 (http://www.adobe.com/).

HTML, XHTML, & CSS(c) Visual QuickStart Guide
HTML, XHTML, and CSS, Sixth Edition
ISBN: 0321430840
EAN: 2147483647
Year: 2004
Pages: 340

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net