Sliding Menu

hey there :slight_smile:

just followed the kirupa’s Sliding Menu 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! :slight_smile: