# Problems getting my movie to "stop"

**URL:** <https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366>\
**Category:** Uncategorized\
**Created:** [February 23, 2004, 2:46am UTC](https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366 "2004-02-23T02:46:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RageW0lf](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@RageW0lf](https://forum.kirupa.com/u/RageW0lf)\
**Post date:** [February 23, 2004, 2:46am UTC](https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366/1 "2004-02-23T02:46:28Z")

</div>

I am starting to get really pi$$ed off with Flash today, I found a bug which wasted me HOURS of time and even now I still can’t get it to work properly.

I have the following code attached to a button within a movie clip with the named instance “mainb”:

```auto

on (rollOut) {
	_root.main.mainb.roll = true;
}
on (releaseOutside, rollOut) {
	_root.main.mainb.roll = false;
}

```

on the movie clip “mainb” I have the following code:

```auto

onClipEvent (enterFrame) {
	if (roll==true && _root.main._currentframe>710) {
		_root.main.stop()
	}
	if (roll==false && _root.main._currentframe>710) {
		_root.main.play()
	}
}

```

now in my mind this should stop the movie of “\_root.main” playing if the button is rolled over & \_root.main movie playhead is in a frame higher than 710.

But, needless to say, it doesn’t work. Why is this?

the paths are RIGHT I used the crosshairs to locate them from \_root. I tried doing it relatively (ie. \_parent etc.) but this didn’t work either.

Please help!

---

<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:** [February 23, 2004, 3:37am UTC](https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366/2 "2004-02-23T03:37:22Z")

</div>

Flash has a problem dealing with nested Mouse Actions, actually the problem is that it doesn’t deal with them. So if there is a Mouse action on ANY of the parent MC’s the child actions are completely ignored. So that MIGHT part of your problem. A fix for that would be to use hitTest (do a search). You might want to check if the functions are being executed at all; by using the trace function–it’s a beauitiful thang.

---

<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:** [February 23, 2004, 11:35am UTC](https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366/3 "2004-02-23T11:35:56Z")

</div>

ok thanks.

Using hitTest I can get the movie to stop:

```auto

onClipEvent (enterFrame) {
	if (this.hitTest(_root._xmouse, _root._ymouse, true) & _root.main._currentframe>710) {
		_root.main.stop()
	}
}

```

I have no idea how to get it to play again when they roll off the movie which is what I need.

Any ideas?

---

<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:** [February 23, 2004, 3:20pm UTC](https://forum.kirupa.com/t/problems-getting-my-movie-to-stop/102366/4 "2004-02-23T15:20:20Z")

</div>

onClipEvent (enterFrame) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true) & \_root.main.\_currentframe\>710) {  
\_root.main.stop()  
}else{  
\_root.main.play();  
}  
}
