# Problem with roll over that allows links

**URL:** https://forum.kirupa.com/t/problem-with-roll-over-that-allows-links/286777
**Category:** flash
**Created:** [April 20, 2009, 9:26pm UTC](https://forum.kirupa.com/t/problem-with-roll-over-that-allows-links/286777 "2009-04-20T21:26:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![luckywolf](https://avatars.discourse-cdn.com/v4/letter/l/8491ac/32.png) [@luckywolf](https://forum.kirupa.com/u/luckywolf)
#### Post date: [April 20, 2009, 9:26pm UTC](https://forum.kirupa.com/t/problem-with-roll-over-that-allows-links/286777/1 "2009-04-20T21:26:45Z")

</div>

I am having a problem with action script I used on a roll over to allow links within the movie clip that is the roll over. The code I am using to achieve this on the button is…

```auto

onClipEvent (enterFrame) {
    // if the mouse IS over the clip ...
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
        // if the last frame of the tween hasn't been reached...
        if (this._currentframe < this._totalframes) {
            // keep playing the next frame to the last and stop...
            this.nextFrame();
        }
        // if the mouse is NOT over the clip
    } else {
        // if we're past the first frame of the tween...
        if (this._currentframe > 1) {
            // play the previous frame until it reaches frame 1 and stop...
            this.prevFrame();
        }
    }
}

```

I want to also be able to use a tell target when the movie clip is rolled over. When I add any other code to this, it no longer works. Can someone please tell me how to archive this or what I’m doing wrong? Thank you!
