# Rollover movie clips

**URL:** https://forum.kirupa.com/t/rollover-movie-clips/298705
**Category:** Uncategorized
**Created:** [October 23, 2009, 12:03pm UTC](https://forum.kirupa.com/t/rollover-movie-clips/298705 "2009-10-23T12:03:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![paddles](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@paddles](https://forum.kirupa.com/u/paddles)
#### Post date: [October 23, 2009, 12:03pm UTC](https://forum.kirupa.com/t/rollover-movie-clips/298705/1 "2009-10-23T12:03:32Z")

</div>

Hello,

I’m new to actionscript and am having difficulties creating a simple rollover action for a flash banner.

I have managed to make it repeat on rollover, but only the first couple of seconds of the animation.

the code I have used is:

ban.addEventListener(MouseEvent.ROLL\_OVER, banOver);

function banOver(event:MouseEvent):void  
{  
ban.gotoAndPlay(“banner”)  
}

any help would be much apreciated.

thanks in advance.
