2 Replies Latest reply on Apr 19, 2010 7:45 AM by d0brin

    SWF problem on SWFObject 1.4

    d0brin Level 1

      okey i am using SWFObject v1.4.4. My question is why when i put 100% widht in my properties it doesnt work?

       

         <div id="flashcontent1">

      <h1>To see this content you need to have installed Flash Player v9. Download it from

        <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><b>here</b></a>.</h1>

         </div>

       

      <script type="text/javascript">

      var so = new SWFObject("flash/main_header.swf", "header1", "100%", "425", "9", "#000000");

      so.addParam("menu", "f");

      so.write("flashcontent1");

                  </script>

       

      it works on SWFobject 2.0 of course with dif syntax:

       

         <div id="flashcontent1">

      <h1>To see this content you need to have installed Flash Player v9. Download it from

        <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><b>here</b></a>.</h1>

         </div>

       

      <script type="text/javascript">

      // <![CDATA]

       

      var flashvars = {};

       

      var params = {};

      params.align = "middle";

      params.bgcolor = "#000000";

      params.allowfullscreen = true;

       

      var attributes = {};

      attributes.id = "flash";

      attributes.name = "flash";

       

      swfobject.embedSWF("flash/main_header.swf", "flashcontent1", "100%", "100%", "9.0.45","swfobject/expressInstall.swf", flashvars, params, attributes);

      // ]]>

      </script>