animated flash buttons
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- gabe0
hey brains, i usually set my buttons up like this...
there's an "idle" state, an "in" state and an "out" state (frame labels.)
onRollOver - gotoAndPlay(in)
at the end of the in sequence is a stop frame, and in that frame is an invisible movie clip. on the invisible movie clip, it says if hitTest != true, then gotoAndPlay(out), otherwise do nothing.i don't usually use onRollOut; for one it's not accurate like you're experiencing, and (2) it looks weird jumping to an out sequence during the middle of your in sequence. i'd rather play the in sequence through, then if the user doesn't have their mouse over the button anymore AFTER it's done playing it's rollover state, it plays it's rollout state.
very abbreviated AS here, but it's enough to get you started.