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
Adobe Flash Player Plugin for Firefox
Adobe Flash Player Plugin for Chrome
Adobe Flash Player Plugin for Safari
Adobe Flash Player ActiveX for IE
►Using "object" Elements for Flash Files
Displaying Images as "object" Elements - Example
Displaying Images as "object" Elements on Firefox 26
Displaying Images as "object" Elements on IE 10
Playing Flash as "object[@data]" - Example
Playing Flash as "object[@data]" on Firefox 26
Playing Flash as "object[@data]" on IE 10
Playing Flash as "object[@classid]"
Playing Flash as "object[@classid]" - Example
Playing Flash as "object[@classid]" on Firefox 26
Playing Flash as "object[@classid]" on IE 10
Playing Flash with Nested "object" Elements
►Playing Flash with a Single "object" Element
Using "embed" Elements for Flash Files
"mp3player" - MP3 Music Player
SWFObject - Hidding "object" behind JavaScript
SWFTools - SWF File Manipulation Tools
SWFC Script to Generate Flash SWF Files
ActionScript Embedded in SWFC Script
AS3Compile - ActionScript 3 Compiler