# More help with Functions and \_x positioning

**URL:** <https://forum.kirupa.com/t/more-help-with-functions-and--x-positioning/107913>\
**Category:** Uncategorized\
**Created:** [April 20, 2004, 5:05am UTC](https://forum.kirupa.com/t/more-help-with-functions-and--x-positioning/107913 "2004-04-20T05:05:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wyclef](https://avatars.discourse-cdn.com/v4/letter/w/65b543/32.png) [@wyclef](https://forum.kirupa.com/u/wyclef)\
**Post date:** [April 20, 2004, 5:05am UTC](https://forum.kirupa.com/t/more-help-with-functions-and--x-positioning/107913/1 "2004-04-20T05:05:29Z")

</div>

Hello,

Could someone take a look at this fla and tell me how I can take the code in the “random” layer, and create a function, much like the startMove function at the bottom that stops the movement of the bars moving around and moves them back to their initial \_x positioning. The bars that get moved around are in the “trend bars” layer. There seem to be a lot of ways to do this but since there are only going to be 6 bars, I would be open to a funciton that hard coded the initial target \_x positioning in for each bar and then stopping the movement. But I need some help with this.

Thanks.
