# Full page flash

**URL:** https://forum.kirupa.com/t/full-page-flash/217502
**Category:** Uncategorized
**Created:** [February 27, 2007, 3:51pm UTC](https://forum.kirupa.com/t/full-page-flash/217502 "2007-02-27T15:51:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rjcogin](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@rjcogin](https://forum.kirupa.com/u/rjcogin)
#### Post date: [February 27, 2007, 3:51pm UTC](https://forum.kirupa.com/t/full-page-flash/217502/1 "2007-02-27T15:51:20Z")

</div>

im using this actionscript to resize a background image to the size of the web browser (full page flash). it works fine but does not take effect until you manually adjust the browser window. i have tried using: stageListener.onResize(); but the movie does not load. any ideas what im doing wrong? thank you

container.loadMovie(“test.swf”);  
Stage.align = “LT”;  
Stage.scaleMode = “noScale”;  
stageListener = new Object();  
stageListener.onResize = function() {  
stretchBG();  
};  
Stage.addListener(stageListener);  
stretchBG = function () {  
container.\_width = Stage.height\*1.5;  
container.\_height = Stage.height;  
};
