# Confusion on the Kirupa.com Tutorial, Menu with Slider

**URL:** https://forum.kirupa.com/t/confusion-on-the-kirupa-com-tutorial-menu-with-slider/127416
**Category:** Uncategorized
**Created:** [November 2, 2004, 9:16pm UTC](https://forum.kirupa.com/t/confusion-on-the-kirupa-com-tutorial-menu-with-slider/127416 "2004-11-02T21:16:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![neilpan](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@neilpan](https://forum.kirupa.com/u/neilpan)
#### Post date: [November 2, 2004, 9:16pm UTC](https://forum.kirupa.com/t/confusion-on-the-kirupa-com-tutorial-menu-with-slider/127416/1 "2004-11-02T21:16:53Z")

</div>

Well, please check this tutorial :

[http://www.kirupa.com/developer/mx2004/menu\_with\_slider.htm](http://www.kirupa.com/developer/mx2004/menu_with_slider.htm)

In the tutorial, we add this code ( in step number 7) :

```auto
button_1.onPress = function() {

xMove = button_1._x;

};
button_2.onPress = function() {

xMove = button_2._x;

};
button_3.onPress = function() {

xMove = button_3._x;

};
button_4.onPress = function() {

xMove = button_4._x;

};

```

The Whole thing works without this code !!! So, i am just confused…  
what is the importance of the code above? :hangover: Can anyone explain me why this code is there in the fla? I mean, i deleted these lines and it works perfectly.

Please forgive me if this is stupid question :+) . I am learning action script and I understood everything in this tutorial except the above thingie. Thanks.
