Simple if then statement

This should be simple, but I think I’m missing something here.

I have a thumbnail movie clip populated by an array via xml.
I have a forward and back button to move the thumbnails to the next group of 5 or back 5.

The forward button is working, but the back button is not backing up a step.

Here is the code on the buttons:
**
BACK**

on (release) {
    if ( thumb_mc._x= 150 ) {
    }
    else if ( thumb_mc._x= -279 ) {
    import mx.transitions.easing.*;
    new Tween(thumb_mc, "_x", Elastic.easeOut, Stage.width, -179, 5, 0, true);
    }
    else if ( thumb_mc._x= -179 ) {
    import mx.transitions.easing.*;
    new Tween(thumb_mc, "_x", Elastic.easeOut, Stage.width, 150, 5, 0, true);
    }
    
}

FORWARD

on (release) {
    if (thumb_mc._x== 150) {
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    new Tween(thumb_mc, "_x", Elastic.easeOut, Stage.width, -179, 5, 0, true);
    }
    else if (thumb_mc._x< -178) {
    import mx.transitions.easing.*;
    new Tween(thumb_mc, "_x", Elastic.easeOut, Stage.width, -279, 5, 0, true);
    }
    
    else if (thumb_mc._x> -279) {
    import mx.transitions.easing.*;
    new Tween(thumb_mc, "_x", Elastic.easeOut, Stage.width, -179, 5, 0, true);
    }
}

I’ve been working in Flash for awhile, but still have issues with actionscript, lol.

If there is an easier way to move the array back and forward via how many images are in the array would be great. I’ve tried to set my slideshow up to edit it via xml to add or subtract images and would like the forward and back buttons to reflect that without having to back into the flash file.

Does this make sense?

Thanks!!!