Flash Tutorials - Herong's Tutorial Examples - v3.03, by Dr. Herong Yang
Playing Flash with a Single "object" Element
This section provides a tutorial example on how to create a single 'object' element to allow both Firefox and IE to play a Flash file correctly.
In the previous section, I presented a way to play Flash files on both IE 10 and Firefox 26 using nested "object" elements.
But you if want to use is single "object" element to play Flash files on both IE 10 and Firefox 26, you can try this simplest format:
<object data="yahoo.swf" width="217" height="85"> Halloween on Yahoo! </object>
Note that you should not use "classid" and "type" attributes. Let IE and Firefox to determine the content type and invoke the correct plugin based on the data file!
If you are reading the Web version of this book,
you should be able to see the above Flash code played below.
Otherwise, you will see a static image below.
Table of Contents