# Sliding Menu

**URL:** <https://forum.kirupa.com/t/sliding-menu/170423>\
**Category:** Uncategorized\
**Created:** [November 25, 2005, 10:45pm UTC](https://forum.kirupa.com/t/sliding-menu/170423 "2005-11-25T22:45:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pantas](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@pantas](https://forum.kirupa.com/u/pantas)\
**Post date:** [November 25, 2005, 10:45pm UTC](https://forum.kirupa.com/t/sliding-menu/170423/1 "2005-11-25T22:45:13Z")

</div>

hey there 🙂

just followed the kirupa’s [Sliding Menu](http://www.kirupa.com/developer/flash5/slidingmenu.htm)Tutorial, but can’t figure one thing out…  
i’ve created one sliding menu, but have 5 images (instead of 4) with 300x250px.

so…can anyone please explain me the AS code in the tutorial so i can change it ?  
i’ve invented some numbers, and by luck achieved the position for 2 images!but i would love to understand the code…lol

here goes the button AS (built for a fond with 4 images of 100x100):  
on (press) {  
\_root.xnew = \_root.mask2.\_x+(4-1)\*100/2;  
}

thanks in advance! 🙂
