flash 2.0全画面

stop();

R = my_mc._height/my_mc._width;
Stage.scaleMode = “noScale”;
Stage.align = “LT”;

trace(R);

function bgScale() {
w = Stage.width;
h = Stage.height;
if (w*R >= h) {
my_mc._width = w;
my_mc._yscale = my_mc._xscale;
} else {
my_mc._height = h;
my_mc._xscale = my_mc._yscale;
}
my_mc._x = w/2;
my_mc._y = h/2;
}

bgScale();

sListener = new Object();
sListener.onResize = function() {
bgScale();
};
Stage.addListener(sListener);
this.stop();