[Flash8] Silly loop playback problem

Hi guys

I tried to create simple animation from this Kirupa’s tutorial
My aim is to make a circle run from left to right and when it is almost to the edge it will move back to the origin point and it will loop only 3 times.
So I came up with totally baby script like this:

onClipEvent(enterFrame) {
    speed = 1;
    count = 0;
    if (this._x < 250) {
    this._y += speed;
    }
    if (this._x = 250) {
    this._y -= speed;
    count +=1
    }
}

But the MC is not move back to the original place.
Sorry for not even finish the script for stop looping. Only tweak on play loop it make me very confused.
My knowledge is quite in entry level but I eager to learn.

Could you let me know what is wrong with the script?

Many thanks for helping:stormtrooper:
Yo