ho scaricato questo effetto zoom da sephiroth
http://www.sephiroth.it/file_detail.php?id=126

....in questo esempio viene caricata esternamente un'immagine
io ho fatto caricare un swf(casa).... su questo filmato ci son delle zone(bottoni) che dovrebbero caricare nuovi mc... o mandare al secondo frame di "casa" ... ma vorrei che mi sparisse la lente!!

è meglio se lo mando ad un secondo frame del movie principale?!

sephiroth hai qualche soluzione? ... qualcun'altro?

io non ne so molto di as... anche se a metà mese prox inizio un corso se volete vi posto il codice per la lente (per me è un po' complesso)
---------------------------------------------------------------
// variables
img = "casa.swf";
base_scale = 70;
// base image scale
base_alpha = 100;
// base image alpha
factor = 1;
// lens factor
num_lens = 10;
// number of duplicate lens
avariation = (100 - base_alpha) / num_lens;
xvariation = ((100 - base_scale) / num_lens) / factor;
// base image
this.createEmptyMovieClip ("base", 1);
base.createEmptyMovieClip ("cont", 1);
base_image = base;
base._visible = 0;
base._alpha = base_alpha;
base._xscale = base._yscale = base_scale;
base.cont.loadMovie (img);
loader.bar._xscale = 0
base.onEnterFrame = function () {
if (this.cont._url != this._url) {
loader.bar._xscale = int((this.cont.getBytesLoaded () / this.cont.getBytesTotal ())*100)
if (this.cont.getBytesLoaded () >= this.cont.getBytesTotal () && this.cont.getBytesTotal () > 4 && this.cont._width > 10) {
this._visible = 1;
delete this.onEnterFrame;
loader._visible = 0
Mouse.hide ();
createLens ();
}
}
};
// lens (variation*alpha)
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;
}
}
};
}
}
-------------------------------------------------------


ah... con il codice dovevo scrivere in actionscript?!?!?
sorry

grazie mille per ogni aiuto!!
ciao
gigigi