View Full Version : button animation
yeswini
07-05-2005, 07:13 AM
hai!
how can i play a seperate movieclip animation in either the over or up state of a button.
and a detailed explanation of scene navigation,want to know how to make the scene comeback to the maintimeline after it goes and plays a particular scene.
thanxs
Ricod
07-09-2005, 11:16 PM
You can put an 'animation' mc in each of the states of the button, or have a button address the 'animation' mcs accordingly.
For example: You have an 'over state animation' mc and an 'after release' mc.
Since there's no 'after release' state, you may want to seperate design from content here. a little code like the following would enable to make it work the way you would like :
on (release) {
_root.after_release_mc.gotoAndPlay(2);
}
//assuming it's there of course
A scene is still on the main timeline actually. To 'go back' so to speak, tell it to go to the frame you want it to go : _root.gotoAndPlay("someFrame");
yeswini
07-11-2005, 06:23 AM
thanks Ricod it was great!
but can't one edit the states by right clicking on the states and then converting them into a m.c
Ricod
07-12-2005, 11:51 PM
Well, one could, but one would still have mcs nested within buttons. If that's what you want, you can put a mc in each of the different states and thes should play accordingly. So, when you do nothing, the mc in the 'up' frame should be playing. When you put your mouse over the button, the mc in the 'over' frame should start playing etc.
But if you want to address these mcs, I think it's best to not have these mcs nested within the button (I'm not too familair with Flash MX 2004, but the last time I used Flash, you couldn't address mcs nested in buttons)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.