# Problem with moving movie clip

**URL:** <https://forum.kirupa.com/t/problem-with-moving-movie-clip/307384>\
**Category:** Uncategorized\
**Created:** [April 2, 2010, 1:02pm UTC](https://forum.kirupa.com/t/problem-with-moving-movie-clip/307384 "2010-04-02T13:02:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konservin](https://avatars.discourse-cdn.com/v4/letter/k/a8b319/32.png) [@Konservin](https://forum.kirupa.com/u/Konservin)\
**Post date:** [April 2, 2010, 1:02pm UTC](https://forum.kirupa.com/t/problem-with-moving-movie-clip/307384/1 "2010-04-02T13:02:10Z")

</div>

I have a weird problem that I cant google a solution to. For some reason the x++ loop to move clip doesn’t work. There must be an easy fault, but as a newbie I can’t see it…

cX=iButton\*.**[COLOR=RoyalBlue]x[/COLOR]**;  
**[COLOR=RoyalBlue]while [/COLOR]**(cX\>iX) {  
iButton\*.**[COLOR=RoyalBlue]x[/COLOR]**=cX;  
cX–  
}

It should move a thing smoothly, as I understand it, but it doesn’t. It completes the [COLOR=RoyalBlue]while [/COLOR]and then shows the iButton at iX, completing the loop without showing a thing meanwhile. I even put a 1000-count [COLOR=RoyalBlue]for[/COLOR]{} loop to slow it down, but it just delayed the final outcome. I also tried to move the moving to a separate function, and into a package. (That’s how stupid solutions I tried…)  
What could be the problem here?

(It’s [these](http://teadur.tea.ee/lisad/dict/dict_menu_4.html)menus I want to slow down.)

Thanks a lot
