# How to go around this?

**URL:** <https://forum.kirupa.com/t/how-to-go-around-this/81195>\
**Category:** flash\
**Created:** [February 28, 2005, 7:45pm UTC](https://forum.kirupa.com/t/how-to-go-around-this/81195 "2005-02-28T19:45:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Appa](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Appa](https://forum.kirupa.com/u/Appa)\
**Post date:** [February 28, 2005, 7:45pm UTC](https://forum.kirupa.com/t/how-to-go-around-this/81195/1 "2005-02-28T19:45:53Z")

</div>

Hi all, im having this weird issue with my movieclip and i was thinking that maybe one of you wise ones have solved this:

i made a movie clip scroller and whenever i drag a button, it scrolls my movieclip. simple. The problem is that flash is not fast enough. I have this kind of statement in the onEnterFrame:

if(mc.\_y \<= 0) {  
return  
} else mc.\_y += speed;

speed is something like 3,5 etc…

PROBLEM: the mc sometimes goes past the 0 point. sometimes when im lucky, the onEnterFrame happens just in time and it stops to 0.

I tried this using onEnterFrame and as a function with setInterval but it is always the same.

Is there a way to around this? i could make mc.\_y to 0 before the return statement but that looks very dumb…
