[Flash 8-AS2] Problem controlling speed/movement with AS inside a loop

I am currently working on a Flash application in which I have several vertical bars that go across the window, and when one of the bars is clicked on, the others move to either the left or the right to create space to the right of the selected bar for a large image.

Here’s an example of something similar:
http://www.fastspot.com/architecturalmesh/
(However, they use a mouse over function where I would be using an on press function.)

I have already written enough of the script to get the bars to move to where they should be when they are clicked on, but they do it instantly–there is no show of movement between point 1 and point 2 (this being the starting and ending x coordinates for each movieclip).

If you’re wondering about any of my number values, they are the way they are because the document is 800 wide, it has 5 vertical bars within it, each of them 30 wide, and the bars are 5 pixels apart when placed next to each other. Anyways, here’s the script I am currently working with:

clip3_mc.onPress = function(){
    speed = 1;
    if (clip3_mc._x < 690){
        while (clip4_mc._x < 725){
            clip4_mc._x += speed;
        }
        while (clip5_mc._x < 760){
            clip5_mc._x += speed;
        }
    }
    else{
        while (clip2_mc._x > 45){
            clip2_mc._x -= speed;
        }
        while (clip3_mc._x > 80){
            clip3_mc._x -= speed;
        }
    }   
}

With this code, all the speed variable does is determine the length of the pause before the bar goes from its original x coordinate to its final x coordinate.

I have tried to replace the line that reads “clip3_mc._x += speed;” with several variations (“clip3_mc._x ++;” , “clip_mc._x = clip_mc._x + 15”), but I don’t think that’s the issue.

I would very much appreciate any insight, tips, or advice anyone might be willing to offer. I will, of course, continue to work on the script on my own and am more then happy to post my own findings if anyone is interested in seeing them. Thank you for your time.