NaN:NaN
NaN:NaN
--:-- / --:--
Newgrounds Background Image Theme

Iamestarr just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Button Problem Nov 1, 2007


Hello, I have a problem with my button. I have made my buttons color alpha so i can't see it. And when you put your mouse over the button you can see it. Inside this button are several other ones (they will be used so the you can click them to play different music). My problem is, whenever i put my mouse over the button the whole button flickers (turning alpha then back to normal). How i can fix this?

Response to Button Problem Nov 1, 2007


At 11/1/07 01:04 PM, Slyfox14 wrote: Hello, I have a problem with my button. I have made my buttons color alpha so i can't see it. And when you put your mouse over the button you can see it. Inside this button are several other ones (they will be used so the you can click them to play different music). My problem is, whenever i put my mouse over the button the whole button flickers (turning alpha then back to normal). How i can fix this?

Oh, the flickering only happens when i hover over, click, or hit the buttons that are inside the invisible button.

Response to Button Problem Nov 1, 2007


Having things with mouse events inside other things with mouse events gets very messy.

I think the best approach for something like this would be to change the outer button into a MovieClip, forget the alpha stuff (leave it at 100%), and have a script which toggles the visibility.

You could put this on the MovieClip:

onClipEvent(enterFrame) { _visible = hitTest(_parent._xmouse, _parent._ymouse, true); }

or the equivalent onEnterFrame function.

That way, the outer MovieClip isn't listening for any mouse events and you won't get any confilcts with the inner buttons.

Response to Button Problem Nov 1, 2007


At 11/1/07 01:13 PM, Moonkey wrote: Having things with mouse events inside other things with mouse events gets very messy.

I think the best approach for something like this would be to change the outer button into a MovieClip, forget the alpha stuff (leave it at 100%), and have a script which toggles the visibility.

Ah thanks, it works now!

and gratz on being chosen as the programmer for Jazza's new game!

Response to Button Problem Nov 1, 2007


Cheers!