# \[Flash8\] Silly loop playback problem

**URL:** https://forum.kirupa.com/t/flash8-silly-loop-playback-problem/273339
**Category:** flash
**Created:** [October 14, 2008, 4:43pm UTC](https://forum.kirupa.com/t/flash8-silly-loop-playback-problem/273339 "2008-10-14T16:43:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ygrafix](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@ygrafix](https://forum.kirupa.com/u/ygrafix)
#### Post date: [October 14, 2008, 4:43pm UTC](https://forum.kirupa.com/t/flash8-silly-loop-playback-problem/273339/1 "2008-10-14T16:43:16Z")

</div>

Hi guys

I tried to create simple animation from [this Kirupa’s tutorial](http://www.kirupa.com/developer/mx/ASmovement.htm)  
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:

```auto
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
