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?
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/