View Full Version : Gradient Background
nickebdon
12-09-2004, 06:47 PM
How do I make a graduated / gradient background which stretches to fill the browser window without using HTML or CSS? The main 'content' box must be centred. A good example is this site: http://www.arne-maynard.com/
I'm sure there is an obvious way to do it, but I'm baffled!
Thanks
Curly Brace
12-09-2004, 07:36 PM
To do that you should:
-In HTML page use 100% width and height fot the flash movie
-In flash on the first frame put the code like this:
Stage.align = "TL";
Stage.scaleMode = "noScale";
st_listener = {};
st_listener.onResize = function() {
bg._width = Stage.width;
bg.height = Stage.height;
main_movie._x = Stage.width/2;
main_movie._y = Stage.height/2;
};
where 'bg' is the movie with the gradient fill and 'main_movie' is your content box
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.