This is a discussion on "making a button animation complete" within the Flash & Multimedia Forum section. This forum, and the thread "making a button animation complete are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
making a button animation complete
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
making a button animation complete
Hi Guys,
I have a simple question that I can't sem to sort myself. I have seen on some flash animations that when you mouse over a button, an animation of that button occurs. ie: think a square. When you mouse over it, it smoothly moves up. When you mouse out, it smoothly moves back down to it original position. I have been using timeline controls for this so far. Mouse over 'goto and play...' then mouse out 'goto and play...'. The problem I am having (and which I have seen on other sites has been solved), is that when I mouse over from one button to another the playhead obviously 'goesto and plays....', skipping the smooth animation back to its origianl position. How is this sorted? I have tried making movie clips and animating them. But I can get it to run on the mouse over section only. Any ideas?? I hope you can help, and that this all made sense. Thanks in advance. |
|
|
|
|||
|
Re: making a button animation complete
this is an example in pseudocode
create a movie. layer 1 - from frame 1-10 create a motion tween of the square moving up put a stop(); on 10 layer 2 - from frame 11 - 20 create a motion tween of the square returnign to its original position put a stop(); on 20 Do this for all buttons. Create a variable CurrentOn which will equal the currently pressed button. You will need to create a blank button movie with a frame 11. Set CurrentOn to Blank When you press ButtonA, it will play CurrentOn(blank) starting at frame 11. It will also Play ButtonA starting at frame 1 (raising the square) It will also set CurrentOn to equal ButtonA. When you then press ButtonB It will play CurrentOn (button a) from frame 11 (which lowers the square) It will play ButtonB at frame 1 (whatever the movie does) It will set CurrentOn to equal ButtonB You seem to know scripting, so you should be able to sort out the code better than I can, since I do not know your button names nor variables. Also, if someone sees an error with this, please comment. I also am new to scripting. |
|
|||
|
Re: making a button animation complete
Check out this tutorial, it basically is what you are looking for.
http://www.kirupa.com/developer/mx20...ton_effect.htm
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: making a button animation complete
Awesome. once again you guys have done me proud. Thank you so much for all your help.
|
![]() |
| Tags |
| buttons, flash |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| etoxin>> Funky Flash site some really funky interactive animation. Animation to play | etoxin | Free Web Site Critique | 33 | Jan 17th, 2008 12:39 |
| I need help with a basic button animation! | uzilover | Flash & Multimedia Forum | 1 | Sep 10th, 2007 19:04 |
| Button animation help!! | Allu | JavaScript Forum | 2 | Aug 16th, 2006 17:16 |
| When a button refuses to behave like a button in Flash | autumn_whispers2me | Flash & Multimedia Forum | 2 | May 24th, 2005 22:08 |
| complete newbie | jonrice | Web Page Design | 6 | Apr 25th, 2005 15:58 |