1 Reply Latest reply on Dec 1, 2013 5:19 PM by kglad

    Getting flash object to crop when resizing browser window

    LessHeroes

      The way I currently have my html resizes the flash file as I resize my browser window, but what I want it to do is crop as it's being resized. For example, if I have the browser window maximized and I resize the window by dragging the right edge to the middle, I want it to crop to show only the left side of the flash. What it's currently doing is resizing the flash to maintain it's aspect ratio, making it way too small.

      Here is what I'm using:

       

      <meta charset="utf-8">

       

      <title>untitled document</title>

       

      <style>

      html,body {

          height:100%;

          margin:0;

      }

      #swf-holder {

          height:100%;

      }

      #swf-holder object {

          display:block;

          width:100%;

          height:100%;

      }

      </style>

       

      </head>

      <body>

       

      <div id="swf-holder">

      <object type="application/x-shockwave-flash" data="Project.swf">

      <param name="movie" value="Project.swf">

      </object>

      </div>

       

      </body>

      </html>