# MovieClip Buttons: onRelease Stay In rollOver State?

**URL:** <https://forum.kirupa.com/t/movieclip-buttons-onrelease-stay-in-rollover-state/303445>\
**Category:** flash\
**Created:** [January 20, 2010, 2:08pm UTC](https://forum.kirupa.com/t/movieclip-buttons-onrelease-stay-in-rollover-state/303445 "2010-01-20T14:08:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Playdo](https://avatars.discourse-cdn.com/v4/letter/p/ec9cab/32.png) [@Playdo](https://forum.kirupa.com/u/Playdo)\
**Post date:** [January 20, 2010, 2:08pm UTC](https://forum.kirupa.com/t/movieclip-buttons-onrelease-stay-in-rollover-state/303445/1 "2010-01-20T14:08:47Z")

</div>

I’ve created some movieClip buttons but cannot get them to stay in their rollOver state after they have been selected. ie so the user knows which section of the website they are currently viewing.

Can anyone help with this?

```auto
 
import mx.transitions.Tween;
import mx.transitions.easing.*;
 
for (i=1; i<=4; i++) {
 var current_btn = this["my"+i+"_btn"];
 
 current_btn.onRollOver = function() {
  var currentAlpha = this.cover_mc._alpha;
  var myHoriTween:Tween = new Tween(this.cover_mc, "_alpha", Strong.easeOut, currentAlpha, 0, 0.5, true);
 };
 
 current_btn.onRollOut = function() {
  var currentAlpha = this.cover_mc._alpha;
  var myHoriTween:Tween = new Tween(this.cover_mc, "_alpha", Regular.easeIn, currentAlpha, 100, 0.5, true); 
 };
 
 current_btn.onRelease = function() {
  //code here
 };
 
}

```

I’ve attached my .fla and here’s the link to the tutorial [http://www.republicofcode.com/tutorials/flash/smoothbuttonanimation/](http://www.republicofcode.com/tutorials/flash/smoothbuttonanimation/)
