Pero quiero hacer algo y necesito alguna inspiracion
Como puedo detener la panoramica cuando llegue al top del desplazamiento de la imagen
Cuando v = 0 o cuando v = pic._width
En el ejemplo del tuto se me ocurre algo asi:
Código :
this.onRollOver = function() {
with(this) {
this.onEnterFrame = function () {
wa = img.width;
if (v<0) {
// Aqui que? Que se detenga el enterFrame? cuando llegue a 0
}
if (v>wa) {
// Aquí cuando llegue al maximo ?
}
v = Math.floor((v+(this._xmouse-tmp.width/2)/15)%wa);
tmp.copyPixels(img, new Rectangle(v, 0, wa, img.height),null);
tmp.copyPixels(img, new Rectangle(v+wa-2*wa*(v>0), 0, wa, img.height), null);
}
}
