3 Replies Latest reply on Nov 17, 2011 2:55 AM by kglad

    FLVPlayback fullscreen

    kiranemc2 Level 1

      Iam playing flv video threw FLVPlayback. Is it possible fullscreen mode to FLVPlayback component

        • 1. Re: FLVPlayback fullscreen
          kglad Adobe Community Professional & MVP

          pick a skin with a fullscreen button and make sure your html publish setting are set for flash only - fullscreen (file/publish settings/html/template).  test in your browser.

          • 2. Re: FLVPlayback fullscreen
            kiranemc2 Level 1

            There is no fullscreen button in as2 FLVPlayback.  How can we create fullscreen.

            • 3. Re: FLVPlayback fullscreen
              kglad Adobe Community Professional & MVP

              you can create your own button and use the following to change to full screen and use the following.  you'll also need to change your html publish settings to use flash-allow fullscreen.

               

              Stage.align = "TL";

              Stage.scaleMode = "noScale";

               

              var origW:Number = yourFLVPB._width;

              var origH:Number = yourFLVPB._height;

               

              yourbutton.onRelease=function(){

              Stage.displayState="fullScreen";

              }

               

              function onFullscreen (){

                  var scaleY:Number = Math.round (100 * (Stage.height) / origH);

                  var scaleX:Number = Math.round (100 * (Stage.width) / origW);

                  var scaleFactor:Number = Math.min (scaleY, scaleX);

                  video_container._xscale = scaleFactor

                  video_container._yscale = scaleFactor;

                  video_container._x = Math.round ((Stage.width / 2) - (yourFLVPB._width / 2));

                  video_container._y = Math.round ((Stage.height / 2) - (yourFLVPB._height / 2));

              }

              Stage.addListener (this);

              1 person found this helpful