HTML-Advisor
Mostly practical advices

SWFObject – embedding FLASH using valid HTML/XHTML or JavaScript

SWFObject is a small Javascript file used for embedding Adobe Flash content. The script can detect the Flash plugin in all major web browsers (on PC and Mac) and is designed to make embedding Flash movies as easy as possible. It is also very search engine friendly, degrades gracefully, can be used in valid HTML and XHTML documents, and is forward compatible, so it should work for years to come.

What SWFObject offers?

  • Two optimized Flash Player embed methods; a markup based approach and a method that relies on JavaScript.
  • A JavaScript API that aims to provide a complete tool set for embedding SWF files and retrieving Flash Player related information (code.google.com/p/swfobject/wiki/api).
  • Utilizes only one small JavaScript file (size ~ 8.7Kb).
  • Will eventually replace the Adobe Flash Player Detection Kit (www.adobe.com/products/flashplayer/download/detection_kit/).
  • Intends to unify all existing Flash Player embed methods and provide a new standard for embedding Adobe Flash Player content.
  • Is an open source project by Geoff Stearns, Michael Williams, and Bobby van der Sluis, and is formerly known as SWFFix (code.google.com/p/swffix/).

Why should you use SWFObject?

  • Is more optimized and flexible than any other Flash Player embed method around.
  • Offers one solution for everybody: It shouldn’t matter if you are an HTML, Flash, or JavaScript developer, there should be something in it for everyone.
  • Breaks the cycle of being locked into vendor specific markup and promotes the use of web standards and alternative content.
  • Uses unobtrusive JavaScript and JavaScript best practices.
    Is easy to use.

SWFObject resources

Tags: , , , , , , , , ,

Related:

Posted in FLASH, JavaScript. 312 views
You can leave a response, or trackback from your own site.

No Comments

Leave a comment

Note for spammers! Don't waste your time - all comments being moderated!