Posted By

geekyjohn on 07/24/11


Tagged

javascript flash embed swfObject


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

connor3ep


SWFObject Embed with options


 / Published in: JavaScript
 

A SWFObject embed example with all options.

  1. <script type="text/javascript">
  2.  
  3. var flashvars = {
  4. name1: "hello",
  5. name2: "world",
  6. name3: "foobar"
  7. };
  8. var params = {
  9. wmode: "transparent"
  10. };
  11. var attributes = {
  12. id: "myDynamicContent",
  13. name: "myDynamicContent"
  14. };
  15.  
  16. swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
  17.  
  18. </script>

Report this snippet  

You need to login to post a comment.