# stageResize clip with fill

**URL:** <https://forum.kirupa.com/t/stageresize-clip-with-fill/81904>\
**Category:** flash\
**Created:** [March 6, 2005, 2:43am UTC](https://forum.kirupa.com/t/stageresize-clip-with-fill/81904 "2005-03-06T02:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointer](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@pointer](https://forum.kirupa.com/u/pointer)\
**Post date:** [March 6, 2005, 2:43am UTC](https://forum.kirupa.com/t/stageresize-clip-with-fill/81904/1 "2005-03-06T02:43:18Z")

</div>

```auto

var clip = this.createEmptyMovieClip("box_mc", this.getNextHighestDepth());
with (clip) {
	lineStyle(0, 0xFFFFFFF, 40);
	beginFill(0xFFFFFF, 100);
	lineTo(Stage.width, 0);
	lineTo(Stage.width, 100);
	lineTo(0, 100);
	lineTo(0, 0);
	endFill();
	_y = 40;
}

stageResize = function(){
**
//clip._width = Stage.width;
//box_mc._width = Stage.width;
//_root.clip._width = Stage.width;
//_root.clip._width = Stage.width;
// nor with _x 
Why does this not work?
**}
stageResize();

var stageListener:Object = new Object();
stageListener.onResize = function() {
	stageResize();	
};

Stage.addListener(stageListener);

```
