PDA

View Full Version : Button mose over animation


caotic
11-06-2004, 09:49 AM
Well I need to make a mause over animation for a button, But as i have seen there is just one frame per action in the button edition mode i per each state (up,down,over,hit). The problem is that i need to make a multi frame animation for the mouse over event. Any help would be apreciated :)

Dark_Element
11-06-2004, 10:22 AM
well i remember i used something like the following before (my description skills sux so be prepared to be confused):
1. make a movieclip with all the animations in the timeline with no gaps.
2. make a empty layer in the movieclip that holds events
3. on this newly made layer you add empty keyframes at the begining frames of each different animation section and name the empty frame to something you can remember eg: rollover, click, rollout
4. add another blank keyframe infront of the named keyframes on the empty layer and give it this actionscript "this.stop();"
5. add the movieclip to your movie and attach the following actionscript to it:
on (rollOver) {
this.gotoAndPlay("rollover");
}
on (press) {
this.gotoAndPlay("press");
}
and so on....

skjc
11-06-2004, 12:11 PM
make a movie clip act as the button

EtherealChaos
11-08-2004, 06:00 AM
In your button's "Over" frame, attach a movieclip with the animation on it. On rollover the animation would play.