insomma una cosa del genere elastica se ti piace studiala e riadattala alle tue esigenze.
codice:
MovieClip.prototype.presenta=function(){
this._alpha=0
this.useHandCursor=true
this.inity = this._y;
this.targety = this.inity;
this.initx = this._x;
this.targetx = this.initx;
this.elfactor = 0.75;
this.speedfactor = 0.9;
this.onEnterFrame=function(){
if(this._alpha<100){this._alpha+=2}
if(this.hitTest(_level0.render_clip.mycheck)){
_level0.box.removeMovieClip()
_level0.box.attachMovie("B"+this._name,"Big",1)
_level0.box.Big._alpha=0
_level0.box.Big.onEnterFrame=function(){
if(this._alpha<100){inc=100-this._alpha/5;this._alpha+=inc}else{delete this.onEnterFrame}
}
}
if(this.ritorna){
this.diffx = this.targetx - this._x;
this.diffy = this.targety - this._y;
this.oldx = this._x;
this.oldy = this._y;
this._x += this.diffx / this.speedfactor + this.speedx * this.elfactor;
this._y += this.diffy / this.speedfactor + this.speedy * this.elfactor;
this.speedx = this._x - this.oldx;
this.speedy = this._y - this.oldy;
}
}
this.onPress=function() {
this.swapDepths(10)
startDrag(this,false)
this.ritorna=false
}
this.onRelease=function(){
this.ritorna=true
stopDrag()
}
}
r1.presenta()
r2.presenta()
r3.presenta()
r4.presenta()
r5.presenta()
r6.presenta()
// r1....r6 sono i clip con dentro le miniature.
Ciauz: