bildBreite = bildKlein._width; bildHoehe = bildKlein._height; // zoomBreite = bildGross._width; zoomHoehe = bildGross._height; // bildGross._x = -(zoomBreite-bildBreite)/2; bildGross._y = -(zoomHoehe-bildHoehe)/2; // faktorHoehe = zoomHoehe/bildHoehe; faktorBreite = zoomBreite/bildBreite; // trace(Math.round(faktorHoehe*100)/100); trace(Math.round(faktorBreite*100)/100); // // bildKlein.onMouseDown = function() { this.onEnterFrame = function() { bildGross._x = _xmouse*-faktorBreite; bildGross._y = _ymouse*-faktorHoehe; }; }; bildKlein.onMouseUp = function() { delete this.onEnterFrame; };