# AS3 button mouse out improvements

**URL:** <https://forum.kirupa.com/t/as3-button-mouse-out-improvements/328069>\
**Category:** Uncategorized\
**Created:** [April 17, 2012, 8:03am UTC](https://forum.kirupa.com/t/as3-button-mouse-out-improvements/328069 "2012-04-17T08:03:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arebee](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@arebee](https://forum.kirupa.com/u/arebee)\
**Post date:** [April 17, 2012, 8:03am UTC](https://forum.kirupa.com/t/as3-button-mouse-out-improvements/328069/1 "2012-04-17T08:03:18Z")

</div>

Hi,

Being new to flash development, I have found this site very useful, but have a problem which I cannot find a solution to.

I have a menu with a couple of buttons that ‘sway’ when the mouse rolls over them. When the mouse rolls out of them, currently the animations just stop dead, where I would prefer them to finish the animation cycle and then stop.

I have attached an example of what I have managed to achieve so far.

I’d even be happy for the buttons to just continuously sway, but even then the animation cycle ‘starts again’ on mousedown.

I know it’s only a small, non-critical problem, but I’t’d really improve the look of the site in my opinion.

Thanks for reading!  
Rick.
