Ciao a tutti...
io ho 4 MC con effetto elastico al passaggio del mouse. Fin qui tutto ok.
Quando voglio aggiungere link a sti MC mi manda sempre sulla stessa scena (ho 4 scene diverse per ogni MC)?
potete aiutarmi per favore dove sbaglio?
ecco il codice a ogni MC:
onClipEvent (load) {
this.elasticScale = function(tar, accel, convert) {
xScale = xScale * accel + (tar - this._xscale) * convert;
yScale = yScale * accel + (tar - this._yscale) * convert;
this._xscale += xScale;
this._yscale += yScale;
}
}
onClipEvent(enterFrame){
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
this.elasticScale(125,0.7,0.4)
this.swapDepths(1);
}else if (!this.hitTest(_root._xmouse,_root._ymouse,true)){
this.elasticScale(100,0.7,0.4)
}
}
onClipEvent(mouseDown) {
_root.gotoAndPlay("scena1")
}

Rispondi quotando