salve a tutti.... ho un problemino
allora:
immagine di fondo.
sopra le applico delle aree sensibili (bottoni o mc sto provando tutt'e due)
al click dovrebbe partire un'effetto "bolla" che zoommi l'area su cui è il mouse... quando è bello grande manda alla sezione desiderata.
il passaggio della variabile della sezione non dovrebbe essere un problema...
invece sta bolla-zoom lo è e come!!
ho scaricato questo effetto zoom da sephiroth
http://www.sephiroth.it/file_detail.php?id=126
ed è il tipo di bolla che mi servirebbe!
questa è a dimensioni fisse mentre io vorrei che variasse anche come dimensione... dal punto in cui si clicca fino a occupare gran parte dell'area.
per ora ho fatto così... ho preso lo script di quella lente e lo richiamo dal bottone con
on (release){
_root.createLens ();
}
dove createLens è:
function createLens () {
this.createEmptyMovieClip ("lens", 2);
this.lens.attachMovie ("lente", "lente", -1);
this.lens.lente.startDrag (true);
for (var a = 1; a <= num_lens; a++) {
this.lens.createEmptyMovieClip ("lens_container_" + a, a);
var container = this.lens['lens_container_' + a];
container.createEmptyMovieClip ("cont", 1);
container.createEmptyMovieClip ("cont", 1);
lens.attachMovie ("mask", "mask_" + a, 2000 + a);
container.cont.loadMovie (img);
container._visible = 0;
container._xscale = container._yscale = base_scale + (xvariation * (++b * 2));
container._alpha = base_alpha + (avariation * (a + 1));
lens['mask_' + a]._xscale = lens['mask_' + a]._yscale = 100 - (xvariation * (a - 1));
this.lens['lens_container_' + a].mask = lens['mask_' + a];
this.lens['lens_container_' + a].onEnterFrame = function () {
if (this.cont._url != this._url) {
if (this.cont.getBytesLoaded () >= this.cont.getBytesTotal () && this.cont.getBytesTotal () > 4 && this.cont._width > 10) {
this._visible = 1;
//this._alpha = base._alpha + 10
delete this.onEnterFrame;
this.cont.setMask (this.mask);
this.mask.control = this;
this.mask.startx = base_image._x;
this.mask.starty = base_image._y;
this.mask.w2 = this._width;
this.mask.w1 = base_image._width;
this.mask.h2 = this._height;
this.mask.h1 = base_image._height;
this.mask.diffx = this._width / base_image._width;
this.mask.diffy = this._height / base_image._height;
this.mask.onEnterFrame = function () {
this.mousex = _root._xmouse - this.startx;
this.mousey = _root._ymouse - this.starty;
this.endx = -this.mousex * this.diffx;
this.endy = -this.mousey * this.diffy;
this.control._x = this.endx + _root._xmouse;
this.control._y = this.endy + _root._ymouse;
this._x = _root._xmouse;
this._y = _root._ymouse;
this.updateAfterEvent ();
};
delete this.onEnterFrame;
}
}
};
}
}
... e fino a qui funziona... clicco... mi appare la bolla in quel punto e bona le!
solo che vorrei che anzichè apparire e basta, appaia crescendo come dimensioni.
qualche idea... suggerimenti ... o anche insulti se preferite!!!
grazie mille
gigigi

Rispondi quotando
