Skip to main content

What is the jQuery SWFObject plugin?

The jQuery SWFObject plugin is an addon for jQuery that lets you easily embed flash movies on a page. This plugin gives you the best of both worlds; you get the power of SWFObject within the jQuery API. The latest version, 1.1.1, is based on the latest SWFObject version 2.2. The project was started in 2009 with permission from the SWFObject team.

What is SWFObject? What is jQuery?

SWFObject is an easy-to-use and standards-friendly method to embed Flash content reliably within all major browsers. Learn more about SWFObject.

jQuery is a small but power-packed bundle of javascript functions that make writing javascript quick and simple. Selecting elements on your page is like using CSS, learning and using functions requires minimal fuss. Learn more about jQuery.

How do I use jQuery SWFObject plugin?

Using the jQuery SWFObject plugin is as easy as jQuery itself. Just write the name of flash document you want to use and where to put it. It works using jQuery selectors.

Open this example in a new window
	function() {

<div id="myFlash">
	The "You don't have flash" message.
	Or any other backup content.
The "You don't have flash" message. Or any other backup content.