About SWFObject
SWFObject is a JavaScript library that serves one purpose: embedding Flash SWF files in HTML documents using standards-friendly techniques.
A common misconception is that SWFObject can embed/control video files. This is not true. SWFObject only embeds Flash SWF files and cannot embed other types of media in an HTML page.
SWFObject provides two different options for embedding a SWF: dynamic publishing, which uses JavaScript to add the markup for you when your page loads in the browser, and static publishing, which means you'll need to add the markup to your page manually. JavaScript is not required for static publishing, but the SWFObject JavaScript library provides some handy (and completely optional) JavaScript tools for you to use, including Flash Player version detection, Express Install functionality, and the swfobject.getObjectById() function.
- The Basics of SWFObject (an overview).
- Learn more about static publishing.
- Learn more about dynamic publishing.
Previous versions of SWFObject
SWFObject is currently at version 2.2. It is important to note that version 2.x is a complete re-write of SWFObject; version 1.x used an entirely different syntax and codebase and is therefore incompatible with SWFObject 2.x. This site only covers SWFObject 2.x.
Questions or Comments?
If you have questions or would like to point out an error, please post your remarks in the SWFObject Google Group. Thanks!