making a button animation complete

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 8th, 2007, 17:47
Junior Member
Join Date: Jun 2007
Location: Leeds, England
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote

  #2 (permalink)  
Old Jul 8th, 2007, 19:32
Junior Member
Join Date: Jun 2007
Location: Arkansas
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Jul 8th, 2007, 20:16
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
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)
Reply With Quote
  #4 (permalink)  
Old Jul 8th, 2007, 20:59
Junior Member
Join Date: Jun 2007
Location: Leeds, England
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Re: making a button animation complete

Awesome. once again you guys have done me proud. Thank you so much for all your help.
Reply With Quote
  #5 (permalink)  
Old Jul 8th, 2007, 21:14
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: making a button animation complete

Anything we can do to help mate.

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
buttons, flash

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43