# Electrongeek.net button

**URL:** <https://forum.kirupa.com/t/electrongeek-net-button/13464>\
**Category:** Uncategorized\
**Created:** [February 13, 2003, 5:17pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464 "2003-02-13T17:17:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![toh](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@toh](https://forum.kirupa.com/u/toh)\
**Post date:** [February 13, 2003, 5:17pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/1 "2003-02-13T17:17:09Z")

</div>

just now, i go to [electrongeek.net](http://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??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 13, 2003, 6:05pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/2 "2003-02-13T18:05:05Z")

</div>

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 … 🙂

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 13, 2003, 7:28pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/3 "2003-02-13T19:28:09Z")

</div>

yeah, i quite agree with that. if this is made by hitest, then you have answer in another [thread](http://www.kirupaforum.com/showthread.php?s=&threadid=14551&highlight=hittest)

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. 😛

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 13, 2003, 7:50pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/4 "2003-02-13T19:50:21Z")

</div>

no problem =)

i’m pretty sure that **eg** will reply later 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 12:06am UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/5 "2003-02-14T00:06:10Z")

</div>

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:

```php
 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. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 10:21am UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/6 "2003-02-14T10:21:03Z")

</div>

Thanks for your coding, EG. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 14, 2003, 5:16pm UTC](https://forum.kirupa.com/t/electrongeek-net-button/13464/7 "2003-02-14T17:16:04Z")

</div>

no problem. =)
