Moving slide and buttons

hi all!
I have a problem about my script
I am doing a image slide which moves from right side of the screen to the left side of the screen at all time. The Slide is about 1000 pixel, within the Image Strip I have 5 images that are buttons. I want to be able click on the image and make the slide to stop.

//In the strip moive clip I have:

onClipEvent(enterFrame){
this._x -= 5;
if(this._x <= - 550){
this._x = 600;
}
else if(_global.click == 1){
this._x -=0;
trace(_global.click);
}
}

//In the buttons I have:

on(press){
_global.click = 1;
}

It seems right to me, but it just won’t work!
Can someone help!!! THANk yOU some MUCH!!!:bu: :bu: :bu:

on the buttons you could place this code:


on(release){
delete _parent.onEnterFrame;
}

or if your gonna have it stop and start again i’d do something like this:


onClipEvent(load){
        moveObj = function(){                
onEnterFrame = function(){
                if(_x <= - 550){
                        this._x = 600;
                }else{
                        _x -= 5;
                }
        }
}
moveObj();
}

and on the buttons place the same code as above:


on(release){
delete _parent.onEnterFrame;
}

and when you want to start moving the obj again just call the function moveObj();

hope this helps

thanks a lot! I will try that!

But, can some one tell me if my script is wrong or is there something that I need to change in order to get it to work!
It really bothers me when I know I am close to get it to work!!!
Thanks for help!!!