Electrongeek.net button

just now, i go to electrongeek.net and realized that it’s color scheme had changed slighly. and its still that good.

it has a more advance button which last time don’nt have.
for example, when you are in home, the home button is unclickable, but when i rollover it, it still has the bluring effect.

now, i think thats not done by .enabled, right? :sigh:

can anybody or eg tell me how to do that??

if enabled is set to [color=red]false[/color] disables onPress onRelease onRollOver onRollOut onDragOut and onDragOver hanlders

i guess the over effect is a hitTest () within onEnterFrame handlers
that’s why it’s not affected … :slight_smile:

[size=1]eg: correct me if i’m wrong :+)[/size]

yeah, i quite agree with that. if this is made by hitest, then you have answer in another thread

i search for hitest and found it. :o

sorry to ask this question again, but i dont’t know it was hittest before you reply. :stuck_out_tongue:

thank you for replying. and if this was not done by hittest, then EG should correct it.:chinaman:

no problem =)

i’m pretty sure that eg will reply later :slight_smile:

kax and toh, you guys are both right, my buttons use a simple system actually, here is an example of one of the actions on my buttons:

 onClipEvent (enterFrame) {
 if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
 _root.effect1.Play();
 } else {
 _root.effect1.gotoandPlay(1);
 }
}
on (release){
	_root.gotoandPlay("home");
	_root.home.enabled=false;
	_root.profile.enabled=true;
	_root.gallery.enabled=true;
	_root.contact.enabled=true;
	_root.credits.enabled=true;
}

The rollover effect uses hittest which plays a movieclip called “effect1” which is the orange glow.

As for the disabling part, I used the enable properties, so if one button is clicked, it is enabled = false, but enables = true the rest of the buttons. Pretty simple. =)

Thanks for your coding, EG. :slight_smile:

no problem. =)