# // Problems with Menu Transitions

**URL:** https://forum.kirupa.com/t/problems-with-menu-transitions/26313
**Category:** flash
**Created:** [July 21, 2003, 10:36pm UTC](https://forum.kirupa.com/t/problems-with-menu-transitions/26313 "2003-07-21T22:36:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HondaFoo](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hondafoo/32/96_2.png) [@HondaFoo](https://forum.kirupa.com/u/HondaFoo)
#### Post date: [July 21, 2003, 10:36pm UTC](https://forum.kirupa.com/t/problems-with-menu-transitions/26313/1 "2003-07-21T22:36:14Z")

</div>

In the provided .fla is a menu and an arrow that go through a certain animation when the button is on rollOver and through another when the button is on rollOut.

ActionScript is inserted to insure that the rollOut animation isn’t played until the rollOver animation is finished.

On the arrow, it works perfectly. If you rollOut before the rollOver animation is done, it finishes that, then proceeds to the rollOut animation.

On the menu, however, something doesn’t work. If you rollOut before the rollOver animation is done, it finishes that, then stops at the end. It doesn’t proceed to the rollOut animation for some reason.

Both the arrow and the menu have the same coding. It’s like it’s goToAndStop for the menu actoinscript, which both are placed on the arrow graphic.

I’d appreciate any help or an explanation.

---

<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 21, 2003, 10:58pm UTC](https://forum.kirupa.com/t/problems-with-menu-transitions/26313/2 "2003-07-21T22:58:03Z")

</div>

honda -

for this kind of thing it’s best to use hitTest and the use of nextFrame and prevFrame in conjunction with an onEnterFrame Handler:

```auto
onClipEvent (enterFrame) {
	if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
		_root.menuClip_mc.nextFrame();
		_root.arrowClip_mc.nextFrame();
	} else {
		_root.menuClip_mc.prevFrame();
		_root.arrowClip_mc.prevFrame();
	}

```

also, the tellTarget action is deprecated and not reccomended for use in flash 6.

attached is your fixed .fla .

---

<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 22, 2003, 3:04am UTC](https://forum.kirupa.com/t/problems-with-menu-transitions/26313/3 "2003-07-22T03:04:02Z")

</div>

Hey, thanks a lot. Very appreciated.
