# Rollover/Rollout stops working after the first rollover

**URL:** https://forum.kirupa.com/t/rollover-rollout-stops-working-after-the-first-rollover/300004
**Category:** Uncategorized
**Created:** [November 14, 2009, 3:25am UTC](https://forum.kirupa.com/t/rollover-rollout-stops-working-after-the-first-rollover/300004 "2009-11-14T03:25:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![smashlea](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@smashlea](https://forum.kirupa.com/u/smashlea)
#### Post date: [November 14, 2009, 3:25am UTC](https://forum.kirupa.com/t/rollover-rollout-stops-working-after-the-first-rollover/300004/1 "2009-11-14T03:25:51Z")

</div>

I’m trying to create a rollover for a movie clip. On rollover, a line underlines the text, and when it rolls out, the underline reverses. This works fine the first time. The next time you rollover, the animation doesn’t work. Then when you move the mouse off the button, a line appears under the text and doesn’t go away.

Here’s my code on the invisible button.

on(rollOver){  
this.gotoAndPlay(“animIn”);  
}

on(rollOut){  
this.gotoAndPlay(“animOut”);  
}

on(press){  
getURL(“link.html”, \_self);  
}
