PDA

View Full Version : stageResize clip with fill



pointer
March 5th, 2005, 09:43 PM
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);

mpelland
March 6th, 2005, 09:11 AM
one problem is the Stage.width. I know its supposed to be the width of the stage but I haven't always had the best experience using that. If I have an image that is bigger than the stage, it says that is the stage.width. Try making two variables at the start of the first frame and set them to be the width and height.

pointer
March 6th, 2005, 09:48 AM
Sorry to say, but it does, work. only in the Mozilla browser.
I made a function of stagelistener, becuz of the IE..
But that code inside the function won't work.

And this on the first keyframe.

Thnx in advanced!

pointer
March 6th, 2005, 10:43 AM
Cmon this seems to be a bug in flash or smt.
Actually asked this to several ppl, they dont got solutions neither..