Skip to main content

Close
Get the best research tool on the web today,and free!
Connect with people with common interests!

saved by67 people, first byJon Buffington on 2006-07-16, last bymemory craft on 2008-08-14

  • SWFObject: Javascript Flash Player detection and embed script

  • SWFObject: Javascript Flash Player detection and embed script
    >





    SWFObject is a small Javascript file used for embedding Macromedia Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) 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 1.0 documents*, and is forward compatible, so it should work for years to come.
    >

  • Passing variables into your movies using the "Flashvars" parameter:
  • so.addVariable("variable1", getQueryParamValue("variable1"));
  • The SWFObject script also comes with an extra function which allows you to pull variable values from the url string
  • so.addVariable("variable1", "value1");
  • SWFObject: Javascript Flash Player detection and embed script
  • SWFObject is a small Javascript file used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) 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 1.0 documents*, and is forward compatible, so it should work for years to come.
  • mply include the swfobject.js Javascript file
  • SWFObject is released under the MIT License. This means (basically) that you can use it for whatever you want with no restrictions.
  • <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="550" height="400" id="Untitled-1" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="/mymovie.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="/mymovie.swf" quality="high" bgcolor="#ffffff" width="550"
    height="400" name="mymovie" align="middle" allowScriptAccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
    </object>
  • on 2006-10-24 Kgl0903
    SWFObject is a small Javascript file used for embedding Macromedia Flash content.
  • on 2006-10-26 Ncells
    Flashプレイヤーの検出とHTML埋め込みを簡単に行えるJavaScriptライブラリ
  • on 2007-01-08 Edgincvg
    SWFObject is a JScript file that will prevent IE users to "Click to activate and use this control" before interacting with a swf file.
  • on 2007-03-18 Danielag
    How to embed flash videos, html code.