I've been following the tutorial "Creating Smooth Button Animation in Flash": http://www.republicofcode.com/tutori...ttonanimation/
As with most menus, when the button is selected it needs to stay highlighted so the user knows which section they are in. The tutorial left this bit out.
I've been unsuccessful so far. Can anyone help finish it?
I've attached the .flaCode: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 }; }




Reply With Quote
