files attached! (source below)
So, here’s the 411 - modified the infinite menu with a scaler, autoscroll and elasticity.
Problem? When it hits the ‘seam’, it skips a bit - you’ll see the elasticity trip.
Anyone know how to cover this little blemish?
Thanks!
the source:
onClipEvent (load) {
//scaling//
k=.3;
damp=.6;
//auto-move//
xcenter=375;
speed=1/6;
this.onEnterFrame = function() {
_x+=(20*.1);
if (_x > 750) _x=0;
if (_x < 0) _x=750;
}
}
on (rollOver) {
this.onEnterFrame = function() {
//move on mouse//
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 1125) _x=-375;
if (_x < -375) _x=1125;
//elastic scaling//
ax=(200 -_xscale)k;
ay=(200 -_yscale)k;
vx+=ax;
vy+=ay;
vx=damp;
vy=damp;
_xscale+=vx;
_yscale+=vy;
}
}
on (rollOut) {
this.onEnterFrame = function() {
//auto move return//
_x+=(20*.1);
if (_x > 750) _x=0;
if (_x < 0) _x=750;
//elastic scaling return//
ax=(100 -_xscale)k;
ay=(100 -_yscale)k;
vx+=ax;
vy+=ay;
vx=damp;
vy=damp;
_xscale+=vx;
_yscale+=vy;
}
}