# How do I think my movie clip?

**URL:** https://forum.kirupa.com/t/how-do-i-think-my-movie-clip/167790
**Category:** Uncategorized
**Created:** [November 1, 2005, 1:42am UTC](https://forum.kirupa.com/t/how-do-i-think-my-movie-clip/167790 "2005-11-01T01:42:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DKusz](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@DKusz](https://forum.kirupa.com/u/DKusz)
#### Post date: [November 1, 2005, 1:42am UTC](https://forum.kirupa.com/t/how-do-i-think-my-movie-clip/167790/1 "2005-11-01T01:42:21Z")

</div>

I have these buttons on my website that are actually movie clips because I have them fade in and out on the rollover, how do I get them to link to the next scene? I tried the on release gotoandplay command, but it says I cant use that on a movie clip. Here is my actionscript on the layer of each button/movieclip:

testbutton\_btn4.\_alpha = 50;  
testbutton\_btn4.onRollOver = function() {  
fade(this, this.\_alpha, 100, 0.85);  
};  
testbutton\_btn4.onRollOut = function() {  
fade(this, this.\_alpha, 50, 0.08);  
};  
//  
function fade(mc, startv, finalv, rate) {  
// calculate per frame change  
var d = (finalv-startv)\*rate;  
mc.onEnterFrame = function() {  
// get the absolute value of the differences so negatives dont affect the calc  
if (Math.abs(finalv-mc.\_alpha)\>=Math.abs(d)) {  
// add the difference  
mc.\_alpha += d;  
} else {  
// all done , clear the onEnterFrame  
mc.\_alpha = finalv;  
delete this.onEnterFrame;  
}  
};  
}

can someone help please??? Thanks.
