# Easy Question - updating AS 1 to AS 2

**URL:** <https://forum.kirupa.com/t/easy-question-updating-as-1-to-as-2/80436>\
**Category:** flash\
**Created:** [February 22, 2005, 4:47am UTC](https://forum.kirupa.com/t/easy-question-updating-as-1-to-as-2/80436 "2005-02-22T04:47:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hammertennis](https://avatars.discourse-cdn.com/v4/letter/h/eb9ed0/32.png) [@hammertennis](https://forum.kirupa.com/u/hammertennis)\
**Post date:** [February 22, 2005, 4:47am UTC](https://forum.kirupa.com/t/easy-question-updating-as-1-to-as-2/80436/1 "2005-02-22T04:47:40Z")

</div>

I am new to actionscript and I have a piece of code that I need to update to as2. It is for a menu that scrolls a movie clip horizontally. I am sure this is easy, but I just don’t have a handle on the syntax.

Here it is:

```auto
startx = getProperty(/:info,_x);
moved = /:targetx-startx;
setProperty(/:info, _x, startx+(moved/7));

```

Thanks in advance.
