Forum Topic: Disabling?

(80 views • 4 replies)

This topic is 1 page long.

<< < > >>
Questioning

Kwing

Reply To Post Reply & Quote

Posted at: 10/8/09 07:35 PM

Kwing DARK LEVEL 24

Sign-Up: 07/24/07

Posts: 2,001

How do I disable Tab and the hand icon when rolling over a button? I remember some script like focusRect=false; except that I don't know where to put that script and I don't even think it's right. And the hand one was something like Mouse.hand or something... So what's the script and where do I put it?


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 10/9/09 08:37 AM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,597

I supose you could warn people about using tab, and then use a penalty script using Key.isDown(Key.TAB)
As for the mouse, no idea. Custom cursers dont have this problem though

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

UnknownFury

Reply To Post Reply & Quote

Posted at: 10/9/09 08:45 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

for (var i in _root) {
     if (typeof (_root[i]) == "MovieClip")
     {
          _root[i].useHandCursor = false;
          _root[i].tabEnabled = false;
    }
}

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


None

UnknownFury

Reply To Post Reply & Quote

Posted at: 10/9/09 08:47 AM

UnknownFury EVIL LEVEL 26

Sign-Up: 08/10/05

Posts: 6,027

At 10/9/09 08:45 AM, UnknownFury wrote: for (var i in _root) {
if (typeof (_root[i]) == "MovieClip")
{
_root[i].useHandCursor = false;
_root[i].tabEnabled = false;
}
}

Urgh. Didn't mean to post. "MovieClip" might have to be "object" as they're buttons.

Portfolio(Under construction): UnknownFury.com |
Msn: giant_ak_47@msn.com | Contact: me@unknownfury.com
Follow me on twitter!


Questioning

Archon68

Reply To Post Reply & Quote

Posted at: 10/9/09 11:39 AM

Archon68 LIGHT LEVEL 22

Sign-Up: 09/09/07

Posts: 3,431

_root.tabEnabled = false;

I code in AS2, in case I forgot to mention it.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 03:20 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!