# Cant stop loop in Flash 7 player

**URL:** <https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/93306>\
**Category:** Uncategorized\
**Created:** [October 28, 2003, 9:29pm UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/93306 "2003-10-28T21:29:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meridian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/meridian/32/243_2.png) [@Meridian](https://forum.kirupa.com/u/Meridian)\
**Post date:** [October 28, 2003, 9:29pm UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/93306/1 "2003-10-28T21:29:54Z")

</div>

When I publish my movie to flash 6 using the 2 methods below the code works fine but when I publish this to flash 7 neither method stop the code from going into a loop and eating the cpu when you view the files online.

```auto

onClipEvent (load) {
easeMove = function (xpos, ypos) { _x += (xpos-_x)/5;_y += (ypos-_y)/5;};
	_root.news.cases.onEnterFrame = function() {
		this.easeMove(700, 297);
		};
		_root.news.cases.onEnterFrame = function(){
        if(this.easeMove(700, 297)== true){
        delete _root.news.cases.onEnterFrame
        }
}

```

and this

```auto

onClipEvent (load) {
	easeMove = function (xpos, ypos) { _x += (xpos-_x)/5;_y += (ypos-_y)/5;};
	_root.news.cases.onEnterFrame = function() {
		if (Math.round(this._x)>432) {
			this.easeMove(432, 297);
        }
}

```

The same thing happens on mac computers when published to 6 using the flash 7 player

Any thoughts?
