Go Back   kirupaForum > Flash > Flash IDE

Reply
 
Thread Tools Display Modes
Old 12-23-2009, 12:39 PM   #1
dpdragnev
Registered User
Afrostyle Button Hit Area problem

Hi,

I am using CS3 with AS 3.0. I have a button which has a little animation in the Over state. It is a ball that bounces up when the user moves the mouse over it. Everything works fine, except when the mouse enters the ball from below. What I think happens is that as soon as the hit area is reached the ball reacts (bounces up), but then the mouse is left outside the hit area and the button goes back into the Up state. This couses a very ugly display of flickering. I have defined the hit area in a separate layer as a square that covers the ball.

My question is: how can I assure that the hit area does not move up when the Over state animation is played and the ball bounces?

To add to this question: What is the best way to continue the animation until the end when the user exits the hit area instead of just jumping back to the Up state?

Thank you,

Daniel D.
dpdragnev is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 12-23-2009, 12:51 PM   #2
snickelfritz
Registered User
Create a static shape for the hit area of the button.
Set the alpha to 0.

Use the play method in the mouse over handler, and don't listen for mouse out at all.
Place a stop method on frame1.

__________________
I used to be a paranoid-psychotic-schizophrenic, but don't worry, he's dead now.
snickelfritz is offline   Reply With Quote
Old 12-23-2009, 04:04 PM   #3
dpdragnev
Registered User
Quote:
Originally Posted by snickelfritz View Post
Create a static shape for the hit area of the button.
Set the alpha to 0.

Use the play method in the mouse over handler, and don't listen for mouse out at all.
Place a stop method on frame1.

Thank you snickelfritz,

Your suggestion worked perfectly. I apreciate your help.
dpdragnev is offline   Reply With Quote
Reply


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

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

Forum Jump


All times are GMT -4. The time now is 11:31 PM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com