flash background scaling
- Started
- Last post
- 6 Responses
- nadnerb
Anybody know a simple - ish way I can get my background to do this:
http://www.basjanader.com/?
It doesn't stretch - the ratio stays the same but it fits to the browser width and height. I have the code fore a stretching background, how might i change it:
this.myListener = new Object();
this.myListener.onResize = function() {
repos();
};Stage.addListener(this.myListene...
Stage.align = "TL";
Stage.scaleMode = "noScale";
function repos() {
this.my_video._x = Stage.width - Stage.width;
this.my_video._y = Stage.height - Stage.height;this.my_video._width = Stage.width;
this.my_video._height = Stage.height;
};repos();
- nadnerb0
*bump
- nadnerb0
bump
one last time. . . anybody. . . ?
- fugged0
not exactly the same, but similar
movieClip._xscale = movieClip._yscale = (Math.max(Stage.width/video_widt...
- PonyBoy0
Enter response:
in the listener - first say:
movie_mc._width = Stage.width;
then... follow that with:
movie_mc._yscale = movie_mc._xscale;
that should keep you to scale.
- digilee0
oh no, not ANOTHER jumpingontheflashbackground bandwagon.
oh well.
- mbr0