Posted By

irishspacemonk on 06/26/09


Tagged

javascript flash video embed swfObject


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

irishspacemonk
kwanhon


SWF Object Embed Code


 / Published in: JavaScript
 

Basic setup code for using SWFObject to embed flash content in a plage.

  1. <script type="text/javascript">
  2.  
  3. var flashvars = {
  4.  
  5. flashVarName1: "",
  6. flashVarName2: "",
  7. flashVarName3: ""
  8.  
  9. };
  10.  
  11. var params = {
  12.  
  13. wmode: "transparent",
  14. allowFullScreen: "true"
  15.  
  16. };
  17.  
  18. var attributes = {
  19.  
  20. };
  21.  
  22. swfobject.embedSWF("nameOfSwf.swf", "divID", "300","240", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
  23.  
  24. </script>

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: foreground on April 20, 2010

swfobject not worked now. http://www.bobbyvandersluis.com/swfobject/generator/index.html - is not worked. Use my snippet http://snipplr.com/view/32434/embed-swf-to-html-page/

You need to login to post a comment.