I really like this site. http://www.georgeglenparker.com
Is the BG in Flash? How is it able to resize like it does?
Thanks
I really like this site. http://www.georgeglenparker.com
Is the BG in Flash? How is it able to resize like it does?
Thanks
taken from the thread above:
if you make your background image a movieclip and name it bg_con the script below should help.
Stage.scaleMode =“noScale”;
Stage.align = “LT”;
var stage_listener:Object = new Object();
stage_listener.onResize = function():Void {
if(Stage.height/Stage.width > bg_con._height/bg_con._width) {
img_prop = bg_con._width/bg_con._height;
bg_con._height = Stage.height;
bg_con._width = Stage.heightimg_prop;
bg_con._y = (Stage.height/2)-(bg_con._height/2);
bg_con._x = (Stage.width/2)-(bg_con._width/2);
} else {
img_prop = bg_con._height/bg_con._width;
bg_con._width = Stage.width;
bg_con._height = Stage.widthimg_prop;
bg_con._y = (Stage.height/2)-(bg_con._height/2);
bg_con._x = (Stage.width/2)-(bg_con._width/2);
}
}
Stage.addListener(stage_listener);
Thank you.
Would this concept also work with a video…as in http://www.natasjafourie.com ?
Or is this just a video component scaled to cover the BG of the stage?
[quote=chriswilson;2333229]Thank you.
Would this concept also work with a video…as in http://www.natasjafourie.com ?
Or is this just a video component scaled to cover the BG of the stage?[/quote]
Haven’t tried it but it could, since it resizes the bg movieclip you assign, what ever you put in there should get resized.
hi there! i designed and built http://www.natasjafourie.com, that sitess actually all flash bar a few tranparent png renders from AE as the nav effect, and then yes, all worked out with an equation similar to the one above to get the scaling right.
good luck