1° fotogramma (per il pulsante stopDrag)
codice:
puls.onRelease=function(){
Mouse.show();
//Stop Dragging Movieclip Behavior
_root.lente.stopDrag();
//End Behavior
}
Nel clip della lente di ingrandimento
codice:
on (press) {
Mouse.hide();
//Start Dragging Movieclip Behavior
startDrag(this);
//End Behavior
}
Nella "clip-foto"
codice:
onClipEvent (load) {
this._xscale=20;
this._yscale=20;
}
onClipEvent (enterFrame) {
if(this.hitTest(_root.lente)){
if(this._xscale <= 20){
this.onEnterFrame=function(){
this._yscale=this._yscale +5;
this._xscale=this._xscale +5;
if(this._xscale >=100){
//this._xscale=100;
delete this.onEnterFrame;
if(this._yscale >=100){
//this._xscale=100;
delete this.onEnterFrame;
}
}}}
//this._yscale=this._yscale +5;
//}
}else{
if(this._xscale >=100){
this.onEnterFrame=function(){
this._xscale=this._xscale -5;
this._yscale=this._yscale -5;
if(this._xscale <=20){
delete this.onEnterFrame;}}}
}
}
verso la fine c'è qualke piccola imperfezione però a me funziona (l'ho fatto io pezzo per pezzo)
ecco l'esempio:
http://max400scuola.altervista.org/a...o10/lente2.htm
per quanto riguarda il collegamento al link non l'ho messo ma mi sembra ovvio... è stato già scritto
PS: per eventuali spiegazioni... sono a vostra disposizione
au revoir
by max 
PS: Ciao Randi