# Cant stop loop in Flash 7 player

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 12:53am UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/34155/2 "2003-10-30T00:53:00Z")

</div>

uninstall flash 7, and never use it again !

I found that worked for me =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 2:38am UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/34155/3 "2003-10-30T02:38:34Z")

</div>

Heh, maybe I should pray that Senocular or Lost in Beta would read this and input their wisdom…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 2:40am UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/34155/4 "2003-10-30T02:40:43Z")

</div>

hm… just give this a shot

```auto
onClipEvent (load) {
        this.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
                }
        }
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 30, 2003, 3:01am UTC](https://forum.kirupa.com/t/cant-stop-loop-in-flash-7-player/34155/5 "2003-10-30T03:01:28Z")

</div>

I think I have solved the bug…

There was a movie clip that was told to load but wasn’t uploaded to the site therefor flash kept looking and looking for something to put in there causing the loop…oh my word I can’t beleive I missed that…
