vis = 1;
scala = true;
Button.prototype.useHandCursor = false;
Stage.align = "";
Stage.scaleMode = "showAll";
wdth = Stage.width;
hght = Stage.height;
Stage.scaleMode = "noScale";
controllo = new Object();
controllo.onResize = function(){
w = Stage.width
h = Stage.height
cx = (w-wdth)/2;
cy = (h-hght)/2;
vis = (w < wdth || h < hght) ? 0 : 1;
for(var i = 1; i < 5; i++){
_root["FRECCIA" + i]._visible = vis;
}
SQUARE._visible;
scaler = scala ? 100+cx/2.2 : 100;
};
Stage.addListener(controllo);
MovieClip.prototype.move = function(x,y){
this._x += (x-this._x)/4;
this._y += (y-this._y)/4;
};
this.onEnterFrame = function(){
SQUARE._xscale = SQUARE._yscale = SQUARE._yscale +
(scaler-SQUARE._yscale)/3;
FRECCIA1.move(2-cx,2-cy);
FRECCIA2.move(wdth-2+cx,2-cy);
FRECCIA3.move(wdth-2+cx,hght-2+cy);
FRECCIA4.move(2-cx,hght-2+cy);
};
controllo.onResize();