# movieClip.onRelease function question

**URL:** https://forum.kirupa.com/t/movieclip-onrelease-function-question/189434
**Category:** flash
**Created:** [June 2, 2006, 2:13pm UTC](https://forum.kirupa.com/t/movieclip-onrelease-function-question/189434 "2006-06-02T14:13:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dsJonCole](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@dsJonCole](https://forum.kirupa.com/u/dsJonCole)
#### Post date: [June 2, 2006, 2:13pm UTC](https://forum.kirupa.com/t/movieclip-onrelease-function-question/189434/1 "2006-06-02T14:13:22Z")

</div>

I guess I need to turn to the experts on this one. It’s probably very simple, however I am missing the solution.

Here is the code I am using:

```auto
btContact.onRollOver = over;
btContact.onRollOut = out;
btContact.onRelease = followLink("contact.swf");

//Start code
function over() {
    trace("Rollover");
}

function out() {
    trace("Rollout");
}

function followLink(linky:String):Void {
    trace(linky + " Clicked.");
}
// NOTE btContact is a movieclip
// End code

```

The onRollOver and onRollOut triggers to their respective function calls work great. However, as I watch the output panel, followLink is run as soon as I hit Test Movie in Flash and not when I click on the movieclip. So if I have other buttons referring to that function, it runs that many times. Am I missing something? I sometimes don’t explain things very well, so let me know if you need more information.

Thanks so much, new friends.  
dsJonCole
