I need help with a basic button animation!

This is a discussion on "I need help with a basic button animation!" within the Flash & Multimedia Forum section. This forum, and the thread "I need help with a basic button animation! are both part of the Design Your Website category.


 Subscribe in a reader

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

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 8th, 2007, 18:04
New Member
Join Date: Sep 2007
Location: Romford, UK
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
I need help with a basic button animation!

Hi,

I hope someone can help with a simple-looking problem which nonetheless has me stumped!
I have a feeling that I've missed something obvious.

I've created a movie clip to act as a button (I've called it "abs_button") and placed it on the stage.
My main movie has one frame.
Within the "abs_button" movie clip there are 5 layers. Labels, actions, default button state, rollover state and rollout state.
Technically, default button state, rollover state and rollout state could be on the same layer as they don't overlap, but I've given each animation its own layer for clarity.

FRAME 01.
Default button state is one frame with a graphic of the button. Just a label at the start ("abs_up") and a "stop();" action at the end.
FRAME 02 to 31.
Rollover state is a 30 frame animation. Label at start ("abs_over"), "stop()"; action at the end.
FRAME 32 to 62.
Rollout state is a 30 frame animation. Label at start ("abs_out"), "stop()"; action at the end.

All animations were achieved with tweens.

My initial "abs_button" code:
"
on (release) {
getURL("targetPage.htm", "_self");
}
on (rollOver) {
gotoAndPlay("abs_button", "abs_over");
}
on (rollOut) {
gotoAndPlay("abs_button", "abs_out");
}
"

As it stands, the animation jumps to frame 1 of "abs_out" on rollout.
I need the "abs_over" animation to always play through to the end, as the "abs_out" is "abs_over" in reverse (i.e. image grows large on rollover and shrinks again on rollout.

I've tried for 2 days to solve this, but I clearly need help. My experiments with variables simply didn't work.
I would be grateful if someone could tell me where I'm going wrong!

Thanks,
Andy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 10th, 2007, 20:04
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: I need help with a basic button animation!

Enjoy....

http://www.kirupa.com/developer/mx20...ton_effect.htm
Last Blog Entry: Yay!? (Oct 8th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
actionscript, button, 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 13:39
making a button animation complete Toby1979 Flash & Multimedia Forum 4 Jul 8th, 2007 22:14
Button animation help!! Allu JavaScript Forum 2 Aug 16th, 2006 18:16
[req] Free basic web templates site + button design site slorryy Web Page Design 3 Feb 17th, 2006 18:05
When a button refuses to behave like a button in Flash autumn_whispers2me Flash & Multimedia Forum 2 May 24th, 2005 23:08


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


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