LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-08-2007, 05:10 PM
uzilover uzilover is offline
Registered User
 
Join Date: Sep 2007
Posts: 8
Rep Power: 0
uzilover is on a distinguished road
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:
Actionscript:
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

Last edited by m. allen west : 01-03-2008 at 10:03 PM Reason: tag your it
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
button animation nikolai Flash CS3 / Flash 9 0 04-25-2008 04:40 PM
Buttons - Rewind button animation on rollout? jeemer Flash MX 1 07-19-2006 07:59 PM
Feel so dumb - need button to load an animation darthsmozers Newbies 0 02-21-2005 04:54 AM
use button to complete the animation utern General Flash 1 09-24-2001 03:00 PM
animation button Aslambek Design and Animation 7 08-21-2001 03:17 PM




All times are GMT. The time now is 02:19 AM.