# Snapping in onRollover/onRollout buttons

**URL:** <https://forum.kirupa.com/t/snapping-in-onrollover-onrollout-buttons/217237>\
**Category:** Uncategorized\
**Created:** [February 24, 2007, 5:42pm UTC](https://forum.kirupa.com/t/snapping-in-onrollover-onrollout-buttons/217237 "2007-02-24T17:42:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adbul](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@Adbul](https://forum.kirupa.com/u/Adbul)\
**Post date:** [February 24, 2007, 5:42pm UTC](https://forum.kirupa.com/t/snapping-in-onrollover-onrollout-buttons/217237/1 "2007-02-24T17:42:30Z")

</div>

Hi!

I noticed that most buttons with animated onRollover/Rollout states you see on webpages snap ugly when you move off them too quickly.

I came up with this solution:

[http://www.box.net/public/3n9rvvdm5b](http://www.box.net/public/3n9rvvdm5b) (fla)

[http://www.box.net/public/8k7i12u75d](http://www.box.net/public/8k7i12u75d) (swf)

(move back and forth quickly to see that the button doesnt snap)

The problem with this solution is that it takes up unnecessary frames and actionscript

It would be WAY easier to just tell the button to  
onRollout = reverse

How do i do that?

Thanks in advance:rabbit:

ADBUL
