# Having my MC scroll not just move to new position

**URL:** https://forum.kirupa.com/t/having-my-mc-scroll-not-just-move-to-new-position/200713
**Category:** flash
**Created:** [September 14, 2006, 2:19pm UTC](https://forum.kirupa.com/t/having-my-mc-scroll-not-just-move-to-new-position/200713 "2006-09-14T14:19:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lariat1997](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lariat1997](https://forum.kirupa.com/u/lariat1997)
#### Post date: [September 14, 2006, 2:19pm UTC](https://forum.kirupa.com/t/having-my-mc-scroll-not-just-move-to-new-position/200713/1 "2006-09-14T14:19:07Z")

</div>

Hey all,

I have a simple one for ya. I was trying to scroll my ball\_mc along the x-axis, but everytime I test it, the mc just moves to the final location…there is no scrolling effect.

I want to do this on one frame of the timeline AND I don’t want to use the setInterval function. I can make it work with setInterval, but figure there has to be another way to make this work.

Thanks.

\*\*Code below:

\*\*[COLOR=Blue]var ball\_mc:MovieClip;

for(var i:Number = 0; i\<20; i++){  
ball\_mc.\_x = ball\_mc.\_x + i;

} [/COLOR]
