1 Attachment(s)
[CS3][AS2] Hello with this 100% flash website code
Hi all,
this has always been haunting me for a while, I mean doing a 100% Flash website, which takes the browser.
I've been able to make the Background take the browsers width and height at 100% using this code
Code:
Stage.align = "TL";
Stage.scaleMode = "noScale";
setProperty(bg_mc, _width, Stage.width);
setProperty(bg_mc, _height, Stage.height);
var resizeListener:Object = new Object();
Stage.addListener(resizeListener);
resizeListener.onResize = function () {
setProperty(bg_mc, _width, Stage.width);
setProperty(bg_mc, _height, Stage.height);
};
For the Bground its ok, but on a layer above the background layer, I have a movieclip (cover_mc) which contains some graphics for a website. What i want to do is
When I resize the broswer, also resize the movieclip cover_mc to fit the users screen and to keep it centered.
I have the Fla Attached as a zip file, can someone please help me wiz it? I going mad with this since i've never made a 100% flash !