Hi Folks,
Here something to test - just two simple functions.
function setMagnify(obj) {
obj.iniPosX = obj._x;
obj.iniPosY = obj._y;
obj.zoom = 2;
obj._xscale = obj._yscale = 100 * obj.zoom;
obj.onMouseMove = function() {
this._x = _xmouse;
this._y = _ymouse;
this.maske._x = this.iniPosX - this._x;
this.maske._y = this.iniPosY - this._y;
updateAfterEvent();
};
}
setMagnify(maske_mc);
Example (Magnifier-Effect):
http://www.flashangel.de/mx/fslupemaske2.swf
function setPano(obj) {
obj.cPoint = 150;
obj.rPoint = (obj._width - (obj.cPoint * 2)) / 2;
duplicateMovieClip(obj, "bild2", 1);
bild2._y = obj._y;
obj.onEnterFrame = function() {
this._x += (this.cPoint - this._parent._xmouse) / 10;
if (this._x < -this.rPoint) {
this._x += this._width;
}
if ((this._x - this._width) > -this.rPoint) {
this._x -= this._width;
}
this._parent.bild2._x = this._x - this._width;
};
}
setPano(bild);
Example (Pano-Slide):
http://www.flashangel.de/mx/fspanorama.swf
yours
Matze K.