Hi all,
I’ve got his code on movieclips on my portfolio: http://www.mucreative.com/chris_portfolio.html
It is used in the graphics section for some rollOvers, but you’ll notice that each time you move to the next frame, the last mc that you rolled on stays visible. I’ve tried removing the swapDepths action from the script below but it doesn’t make any difference. (the variable “spring” is defined in the first frame - about .2).
[AS]
onClipEvent (load){
this._xscale = this._yscale = 80;
this.targetScale = 60;
}
onClipEvent (enterFrame) {
diff = this.targetScale-this._xscale;
growth = diff*_root.spring;
this._xscale += growth;
this._yscale += growth;
}
on (rollOver){
this.targetScale = 80;
this.swapDepths(4);
}
on (rollOut, release, dragOut){
this.targetScale = 60;
}
[/AS]
Thanks