# Code explanation required: Slider tutorial

**URL:** https://forum.kirupa.com/t/code-explanation-required-slider-tutorial/132024
**Category:** Uncategorized
**Created:** [December 22, 2004, 10:00am UTC](https://forum.kirupa.com/t/code-explanation-required-slider-tutorial/132024 "2004-12-22T10:00:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vexir](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@Vexir](https://forum.kirupa.com/u/Vexir)
#### Post date: [December 22, 2004, 10:00am UTC](https://forum.kirupa.com/t/code-explanation-required-slider-tutorial/132024/1 "2004-12-22T10:00:00Z")

</div>

In regards to the slider menu tutorial, (which was a great tutorial, hats off to Bryan), I’m a newbie to actionscript. Never used it before… don’t under stand how it relates to the math generally.

Was wondering if I could get a breakdown and explanation of this bit of code:

```auto
this._x += (xMove1-this._x)/easeSpeed;

```

Thanks 🍺

P.S. My slider doesn’t seem to want to move to the center of my buttons, it always deviates slightly to the left. Go figure?
