Having some issues with this animated button. I know there are other threads with the same issue but the issue isn't resolved..
I think I did this correctly.. BUT it still seems to be a bit buggy..
As with others the original issue was that the animation wouldnt come back to the original state when it was roller over and off quickly..
I got it to come back but not if you roll over and off it quickly it jumps to the rollover state and animates back to the home state, which causes a jerking..
I want it to be a smooth transition...
when you rollover the button it animates from the home state to the rollover state, then if the mouse has been rolled off then it animates back. without skipping any frames..
PLEASE HELP.. Im running out of hair to pull out!!!
THANKS!
k
1st frame: rest-state, just a stop() action
2nd frame: a label (I always use "over"), a keyframe with the rest-state
(here comes a tween)
xth frame: the end-state of the button, stop() action
Then the same thing, but reversed (so starting with a "out" label), be careful to make the tweens over an equal amount of keyframes!
then it's always
Code:
// Checking if it isn't playing
if(btn.currentFrame == 1){btn.gotoAndPlay("over");}
//
// If it is, then start playing a certain number of frames further
// equal to the frames that have not been played in the "out" animation
//
// The 2 represents the start of the "over" animation, the xx the last keyframe
// in your btn mc + 1 or 2 (try both of these)
else{btn.gotoAndPlay(2 + (xx - btn.currentFrame));}
for the over, and
Code:
btn.gotoAndPlay(xx - btn.currentFrame);
for the out
(I think I've already removed you're fla ..)
Florian Vanthuyne
WAR AGAINST SOLVED THREADS
mark yours as Resolved under Thread Tools!
took me a while to get it because in my head, the playhead was reversing. (stress the point "in my head" therefore i know it's not actually doing that!)
it's just jumping to the equivalent frame in the out section.