# Resizing SWF problems

**URL:** <https://forum.kirupa.com/t/resizing-swf-problems/311821>\
**Category:** flash\
**Created:** [July 17, 2010, 4:52am UTC](https://forum.kirupa.com/t/resizing-swf-problems/311821 "2010-07-17T04:52:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GioG7](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@GioG7](https://forum.kirupa.com/u/GioG7)\
**Post date:** [July 17, 2010, 4:52am UTC](https://forum.kirupa.com/t/resizing-swf-problems/311821/1 "2010-07-17T04:52:17Z")

</div>

For some reason my preloader swf resizes correctly according to the screen size but then the swf that is being loaded does not resize at all. I am not sure exactly whats going on since they both have the same code to resize.

Check it out:  
[http://www.pixelflexstudios.com/test/test.html](http://www.pixelflexstudios.com/test/test.html)

Here is the second swf’s code…

```auto

// CLASSES //
import flash.events.Event;

// BACKGROUND RESIZE //
addEventListener(Event.ADDED_TO_STAGE, init);

function init (e:Event):void {
    stage.addEventListener(Event.RESIZE, screenSize);
    
    stage.align = "topLeft";
    stage.scaleMode = "noScale";
    
    function screenSize (e:Event):void {
        // MAIN //
        background_mc.width = stage.stageWidth;
        background_mc.height = stage.stageHeight;
        background_mc.x = stage.stageWidth / 2;
        background_mc.y = stage.stageHeight / 2;
        // FOOTER //
        footer_mc.x = stage.stageWidth / 2;
        footer_mc.y = stage.stageHeight + 25;
        footer_mc.footer_mc.width = stage.stageWidth;
        footer_mc.copyright_mc.x = (footer_mc.footer_mc.width / 2) - 381.20;
        footer_mc.privacyPolicy_mc.x = (footer_mc.footer_mc.width / 2) - 215.50;
        footer_mc.sound_mc.x = (footer_mc.footer_mc.width / 2) - 80;
    }
}

```
