Making a mc follow another

How can I make an mc move twords another mc’s x position? That way it kind of follows it. I tried:

onClipEvent(enterFrame){
if(this._x<=circle._x){this._x+=5}}

Which didn’t work. I can’t think of anything else though.