PDA

View Full Version : Animated buttons


Leon187
05-27-2005, 04:23 PM
Could anyone point me towards any animated button tutorials. I am looking for one where when the curser leaves the button it animates back to its original state. Ie. not one where the animation could be half way through and it jolts back to its original state when the cursor leaves the button.

Hope this makes sense!

Leon.

quinu
05-27-2005, 04:51 PM
Turn your button into a movie. You will have to name the frames "_up", "_over", "_down". Name another frame something like "rollout".
Then use the following.


btn.onRelease = function(){
// Do what you want your button to do.
};
btn.onRollOut = function(){
gotoAndPlay("rollout");
};

webdes03
12-22-2005, 06:11 PM
http://www.gotoandlearn.com/