# Stop scrolling

**URL:** <https://forum.kirupa.com/t/stop-scrolling/158135>\
**Category:** Uncategorized\
**Created:** [August 7, 2005, 3:17pm UTC](https://forum.kirupa.com/t/stop-scrolling/158135 "2005-08-07T15:17:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pocieffe](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@pocieffe](https://forum.kirupa.com/u/pocieffe)\
**Post date:** [August 7, 2005, 3:17pm UTC](https://forum.kirupa.com/t/stop-scrolling/158135/1 "2005-08-07T15:17:19Z")

</div>

hi  
i’m using this simple code to scroll a picture’s strip

```auto

_root.onEnterFrame = function() {
menu_mc._x -= (_xmouse-stage.width/2)*0.06;
};

```

how can i stop the scrolling on right and left side ?? i tried  
if(menu\_mc\>max)…

but it block there and dont roll more…  
i think it’s trite question but can you help me ?? thank’s
