# \[fmx\] - hiccup remains (fixed other issues on own - can anyone find the gremlin?)

**URL:** <https://forum.kirupa.com/t/fmx-hiccup-remains-fixed-other-issues-on-own-can-anyone-find-the-gremlin/150323>\
**Category:** flash\
**Created:** [June 6, 2005, 7:41pm UTC](https://forum.kirupa.com/t/fmx-hiccup-remains-fixed-other-issues-on-own-can-anyone-find-the-gremlin/150323 "2005-06-06T19:41:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![d503](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@d503](https://forum.kirupa.com/u/d503)\
**Post date:** [June 6, 2005, 7:41pm UTC](https://forum.kirupa.com/t/fmx-hiccup-remains-fixed-other-issues-on-own-can-anyone-find-the-gremlin/150323/1 "2005-06-06T19:41:05Z")

</div>

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;  
}  
}
