perche con flash usavo un script di questo tipo:

codice:
bouge = function () {
	foto._x = 0;
	foto._y = 0;
	foto._width = Stage.width;
	foto._height = Stage.width / rapp;
	if (foto._height < Stage.height) {
		foto._height = Stage.height;
		foto._width = Stage.height * rapp;
	}
};
var rapp = foto._width / foto._height;
var ecout = new Object ();
ecout.onResize = function () {
	bouge ();
};
Stage.addListener (ecout);
dove cera una funzione onResize che faceva partire lo script quando uno ridimensionava la finestra del browser...

grazie