background filling entire screen. well, i try and try, but...
hi!
i found this thread, and i've been trying to get it to work: http://flashkit.com/board/showthrea...ht=fill+browser
unfortunately i fail, although i try to follow the instructions. something i do wrong. so i was wondering if it was possible for anyone maybe to mail me a functioning fla..? that way i could learn where my mistake was. here's the code i copied from that thread:
HTML Code:
// noScale prevents content in the movie resizing (unless we tell it to!)
Stage.scaleMode = "noScale";
// LT means all positions measured from the top left hand corner
Stage.align = "LT";
// a function to be called when the movie resizes
// this will resize the background clip to fill the stage
bg.onResize = function() {
this._width = Stage.width;
this._height = Stage.height;
};
// get the bg clip to listen for events (onResize)
// broadcast by the stage object
Stage.addListener(bg);
bg._x = bg._y = 0;
bg.onResize();
// this function will position the content clip in the centre
// when the movie resizes
content.onResize = function() {
this._x = (Stage.width - this._width) / 2;
this._y = (Stage.height - this._height) / 2;
};
Stage.addListener(content);
content.onResize();
i hope this is not too much to ask! instead of learning, i feel i'm getting more stupid every day. flashbacks, i guess. grrrr.
thank you.
mar