4 Replies Latest reply on Sep 30, 2009 1:38 PM by tantebootsy

    how to Resize Flash when using browser-zoom

    tantebootsy

      Hi,

       

      I've got a FLV-file which I integrate via SWFObject. When I use the browser-zoom in FF (CMD and + on Mac) everything resizes except the flash-movie. FF resizes when I reload the page after changing the zoom-level al last but IE doesn't resize at all.

       

      A Youtube-movie which is integrated via SWFObject, too does resize when using the browser-zoom, although all parameter sent with the movie are the same as for the FLV-file.

       

      Do you guys know which setting/ parameter's needed to get the FLV zoom, too?

       

      I already tried the param "scale" but without success.

       

      Here's my code which is generated from the SWFObject for the FLV:

       

      <span id="player11b5384f9632016dd4b27f42a53c9094" class="rgmediaimages-player test rgmi275">
           <embed id="mpl" width="400" height="300" flashvars="file=http://www.domain.de/uploads/pics/HOMEweb-DE_02.FLV&showstop=true" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" quality="high" name="mpl" src="http://www.domain.de/typo3conf/ext/rgmediaimages/res/mediaplayer.swf" type="application/x-shockwave-flash"/>
      </span>
      <script type="text/javascript">

           window.addEvent("load", function(){
                 var so = new SWFObject("http://www.domain.de/typo3conf/ext/rgmediaimages/res/mediaplayer.swf","mpl","400","300","8");
                 so.addParam("allowscriptaccess","always");
                 so.addParam("allowfullscreen","true");
                 so.addParam("wmode", "transparent");
                 so.addVariable("file","http://www.domain.de/uploads/pics/HOMEweb-DE_02.FLV");
                 so.addVariable("showstop","true");
                 so.write("player11b5384f9632016dd4b27f42a53c9094");
           });

      </script>

       

      And here's the code for the YT-Video:

       

      <span id="playerdf4760c3ada886ee1ad7f716b07172a8" class="rgmediaimages-player test rgmi">
           <embed id="sfwvideo" width="510" height="383" flashvars="file=http://www.youtube.com/watch?v=PIXhg93cWjU&showstop=true" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" quality="high" bgcolor="#FFFFFF" name="sfwvideo" src="http://www.youtube.com/v/PIXhg93cWjU" type="application/x-shockwave-flash"/>
      </span>
      <script type="text/javascript">

           var so = new SWFObject("http://www.youtube.com/v/PIXhg93cWjU", "sfwvideo", "510","383", "9", "#FFFFFF");
           so.addParam("allowscriptaccess","always");
           so.addParam("allowfullscreen","true");
           so.addParam("wmode", "transparent");
           so.addVariable("file","http://www.youtube.com/watch?v=PIXhg93cWjU");
           so.addVariable("showstop","true");
           so.write("playerdf4760c3ada886ee1ad7f716b07172a8");
      </script>

       

      Would be great, if you could help.

       

      Thanks,

      Michael