# Help with this PLEASE!

**URL:** <https://forum.kirupa.com/t/help-with-this-please/248101>\
**Category:** flash\
**Created:** [January 3, 2008, 9:35pm UTC](https://forum.kirupa.com/t/help-with-this-please/248101 "2008-01-03T21:35:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparky\_157](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sparky\_157](https://forum.kirupa.com/u/sparky_157)\
**Post date:** [January 3, 2008, 9:35pm UTC](https://forum.kirupa.com/t/help-with-this-please/248101/1 "2008-01-03T21:35:10Z")

</div>

i have my navigation half built ([http://www.parttimelegend.com/tests/](http://parttimelegend.com/tests/)) and i am having a few issues.

1. set the initial \_x position?

2. how can make the navigation ease to an \_x position when you roll out of the swf?

3. stop the movement of the \_x postion so it cannot go too far left or right?

This is the code i have used. it has been applied to the black bar in the background and the white mask for the text

```auto
onClipEvent (load) {
    _x = 0;
    speed = 2;

}

onClipEvent (enterFrame) {
    endX = _root._xmouse;
    _x += (endX-_x)/speed;
}

```

This navigation will be used on an html site, any and all help will be greatly appreciated.
