# Fullscreen resize bug

**URL:** <https://forum.kirupa.com/t/fullscreen-resize-bug/280232>\
**Category:** Uncategorized\
**Created:** [January 24, 2009, 6:04pm UTC](https://forum.kirupa.com/t/fullscreen-resize-bug/280232 "2009-01-24T18:04:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snozbunny](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@snozbunny](https://forum.kirupa.com/u/snozbunny)\
**Post date:** [January 24, 2009, 6:04pm UTC](https://forum.kirupa.com/t/fullscreen-resize-bug/280232/1 "2009-01-24T18:04:45Z")

</div>

Hello everyone,

I’m having the weirdest problem. I have a fullscreen function and it works great except when I try to make the current video playing the same size as my screen. Oddly enough it reports that the swfStage.width is 1280 but the videoScreen.width is 852?

How does…

videoScreen.width = swfStage.width COLOR=Red[/COLOR];

end up as [COLOR=Red]852px[/COLOR]?

```php

        private function fullScreen(event:Event = null):void 
        {
            
            if (swfStage.displayState == StageDisplayState.NORMAL) {
                swfStage.displayState = StageDisplayState.FULL_SCREEN;
                
                if (videoScreen.height > swfStage.height && (swfStage.width - videoScreen.width) < (swfStage.height - videoScreen.height)) {
                    testbox.output("smaller height");
                } else if (videoScreen.width > swfStage.width && (swfStage.height - videoScreen.height) < (swfStage.width - videoScreen.width)) {
                    testbox.output("smaller width");
                } else if (videoScreen.height < swfStage.height && (videoScreen.height - swfStage.height) < (videoScreen.width - swfStage.width)) {
                    videoScreen.height = swfStage.height;
                } else if (videoScreen.width < swfStage.width && (videoScreen.width - swfStage.width) < (videoScreen.height - swfStage.height)) {
                    videoScreen.width = swfStage.width;
                    videoScreen.height = swfStage.height;
                }

                centerstage.resizeDisplay();
            } else {
                videoScreen.width = flvXML.settings.width;
                videoScreen.height = flvXML.settings.height;
                
                swfStage.displayState = StageDisplayState.NORMAL;
            }
            playVideo();
        }

```
