Embedding Flash
Flash is an animated image format from Macromedia (now part of Adobe) that is widely used on the Web.
To embed Flash:
1. | Begin the object element with <object.
|
2. | Use type="application/x-shockwave-flash" to indicate the MIME type for Flash animations.
|
3. | Type data="filename.swf", where filename.swf is the name and location of the Flash animation on your server.
|
4. | Specify the dimensions of your animation with width="w" height="h", where w and h are both values in pixels.
|
5. | Finish the opening object tag by typing >.
|
6. | Add <param name="movie" value="filename.swf" />, where filename.swf matches what you used in step 3.
|
7. | Type </object> to complete the object.
Figure 18.48. To embed Flash, set the MIME type to application/x-shockwave-flash ... |
Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.