# Sliding menu help

**URL:** <https://forum.kirupa.com/t/sliding-menu-help/98465>\
**Category:** Uncategorized\
**Created:** [January 7, 2004, 3:46pm UTC](https://forum.kirupa.com/t/sliding-menu-help/98465 "2004-01-07T15:46:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tee28](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tee28](https://forum.kirupa.com/u/tee28)\
**Post date:** [January 7, 2004, 3:46pm UTC](https://forum.kirupa.com/t/sliding-menu-help/98465/1 "2004-01-07T15:46:24Z")

</div>

hi all,  
i’m trying to do a sliding menu that is similiar to [http://actionscript.org/tutorials/intermediate/Easing\_Menu\_System/index.shtml](http://actionscript.org/tutorials/intermediate/Easing_Menu_System/index.shtml) with a few modification. The source code they gave me is :  
// on mc  
onClipEvent (load) {  
\_x = 0;  
\_y = 0;  
div = 5;  
}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/div;  
\_y += (endY-\_y)/div;  
// on button  
onPress = value of endX/Y;

this code works by telling the mc to go to an exact point. what i’m trying to do is to have it to constanty scroll left or right (smoothly)onRollOver. does anybody have any suggestions?

tia,  
t.
