# On rollout play backwards?

**URL:** <https://forum.kirupa.com/t/on-rollout-play-backwards/24779>\
**Category:** Uncategorized\
**Created:** [July 4, 2003, 5:45pm UTC](https://forum.kirupa.com/t/on-rollout-play-backwards/24779 "2003-07-04T17:45:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luksy](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@luksy](https://forum.kirupa.com/u/luksy)\
**Post date:** [July 4, 2003, 5:45pm UTC](https://forum.kirupa.com/t/on-rollout-play-backwards/24779/1 "2003-07-04T17:45:41Z")

</div>

I have a problem that you might solve. Or better yet…you CAN solve 😉

I created a MC that will play when you rollover a button and play again on rollout. Here comes the problem. If you rollout this MC before the animation comes to stop, it will stop at the stop point and won’t continue playing until you rollover again which then looks (and actually is) as a bug.

I heard that there is an action that when it detects mouse, plays but if the mouse leaves, it plays backwards(?). He was saying something about getproperty.

Many thanks in advance.

---

<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:** [July 4, 2003, 5:48pm UTC](https://forum.kirupa.com/t/on-rollout-play-backwards/24779/2 "2003-07-04T17:48:28Z")

</div>

Check this out:

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=11427](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=11427)

---

<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:** [July 4, 2003, 5:48pm UTC](https://forum.kirupa.com/t/on-rollout-play-backwards/24779/3 "2003-07-04T17:48:34Z")

</div>

What !? I don’t get it at ALL :-\

---

<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:** [July 4, 2003, 6:08pm UTC](https://forum.kirupa.com/t/on-rollout-play-backwards/24779/4 "2003-07-04T18:08:01Z")

</div>

ok here goes:

\<code\>

//Button Function  
myButton\_mc.onEnterFrame = function () {

//this will check to see if "onmyButton is true if it is it will go to the next frame in your button MC. If it is not it will go back to the previous frame

```
if (onmyButton) {
	this.nextFrame ();
}else {
	this.prevFrame ();
}

```

}

//Button Action  
myButton\_mc.onRollOver = function () {

//This will send a true variable back to the above function to make the timeline move forward.

```
onmyButton = true;

```

}  
myButton\_mc.onRollOut = function () {

//This will send a false variable back to the above function to make the timeline move backwards.

```
onmyButton = false;

```

}

\</code\>

Hope that helps 🙂

–  
Michael
