Posted By

digitalzoomstudio on 07/22/11


Tagged

object flash embed swf as3 static


Versions (?)

New Object Embed for SWF


 / Published in: HTML
 

Hey guys, I struggled a little to find a crossbrowser, non repetitive params way to embed swfs; this object embed works flawlessly for me in all browsers - ie7, ie8, safari, chrome, firefox. Why is swfobject and YouTube using this format - http://code.google.com/p/swfobject/wiki/documentation ( scroll to static embed ) ? The flaw with that is that you have to change width/height/flashvars 2 times rather then my method where it's only one ...

So anybody knows why they are using that ? Does it work in IE6 ( I can't test this .. ) ? If that's the case - I don't care about ie6:D

  1. <p>
  2. <object type="application/x-shockwave-flash" data="preview.swf" width="915" height="360" id="flashcontent" style="visibility: visible; "><param name="movie" value="preview.swf"><param name="menu" value="false"><param name="allowScriptAccess" value="always"><param name="scale" value="noscale"><param name="allowFullScreen" value="true"><param name="wmode" value="opaque"><param name="flashvars" value="xml=xml/gallery2.xml">
  3. </p>
  4.  
  5. <p>
  6. <object type="application/x-shockwave-flash" data="preview.swf" width="915" height="360" id="flashcontent" style="visibility: visible;">
  7. <param name="movie" value="preview.swf"><param name="menu" value="false"><param name="allowScriptAccess" value="always">
  8. <param name="scale" value="noscale"><param name="allowFullScreen" value="true"><param name="wmode" value="opaque">
  9. <param name="flashvars" value="xml=xml/gallery2.xml">
  10. </p>

Report this snippet  

You need to login to post a comment.