Appendix H. Embedding a Flash Movie in a Web Page

To embed a Flash movie in a web page we use
the HTML <EMBED> and
<OBJECT> tags, much like we use the
<IMG> tag to place a GIF or a JPEG on a
page. Recent versions of Internet Explorer (IE) for Windows (IE5.5
SP2 and later) require the <OBJECT> tag (the
<OBJECT> tag is also preferred over the
<EMBED> tag even for earlier versions of IE
for Windows, which supported both tags). Internet Explorer for
Macintosh and Netscape on both platforms require the
<EMBED> tag, as do many minor browsers.
Therefore, to support all browsers, we nest the
<EMBED> tag within the
<OBJECT> tag as shown in Example H-1, which
embeds a movie called main.swf in
an HTML page.

Example H-1. <OBJECT> AND <EMBED> tags for embedding a .swf file in an HTML page