# Full page flash (Barload = 100%)

**URL:** https://forum.kirupa.com/t/full-page-flash-barload-100/222335
**Category:** flash
**Created:** [April 12, 2007, 3:53pm UTC](https://forum.kirupa.com/t/full-page-flash-barload-100/222335 "2007-04-12T15:53:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Soig](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Soig](https://forum.kirupa.com/u/Soig)
#### Post date: [April 12, 2007, 3:53pm UTC](https://forum.kirupa.com/t/full-page-flash-barload-100/222335/1 "2007-04-12T15:53:04Z")

</div>

Hi, I’m working on my first full page flash and I’m having a little difficulty with something. I would like the bar loader to extend from 0, 0 to 0, Stage.width.

The bar is set to 800 pixels. However I would like to set it to the width of the stage with actionscript and then have it scale in proportion to the download rate. The problem is that i can’t get the bar to the full stage width. It stays at 800 pixels. **[Here is the original FLA](Http://www.u2xs.com/temp/index.fla)**

> **Here is the code on the first frame**  
> \_root.barLoad1.width = Stage.width  
> \_root.barLoad2.width = Stage.width  
> trace(\_root.barLoad1.width);  
> trace(\_root.barLoad2.width);

\_root.barLoad1.\_xscale = 1;  
\_root.barLoad2.\_xscale = 1;  
loaderClip.\_x = Stage.width / 2;  
loaderClip.\_y = Stage.height / 2;  
barLoad1.\_y = 0;  
barLoad1.\_x = 0;  
barLoad2.\_y = Stage.height;  
barLoad2.\_x = Stage.width;  
var stageL:Object = new Object();  
stageL.onResize = function() {  
//SETS THE POSITION OF THE LOADER CLIP  
loaderClip.\_x = Stage.width / 2;  
loaderClip.\_y = Stage.height / 2;  
//SETS THE X & Y AXIS OF BAR LOADER 1 & 2  
barLoad1.\_y = 0;  
barLoad1.\_x = 0;  
barLoad2.\_y = Stage.height;  
barLoad2.\_x = Stage.width;  
}  
Stage.addListener(stageL);
