# Cursor

**URL:** <https://forum.kirupa.com/t/cursor/6209>\
**Category:** flash\
**Created:** [October 1, 2002, 11:38pm UTC](https://forum.kirupa.com/t/cursor/6209 "2002-10-01T23:38:09Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [October 9, 2002, 9:21pm UTC](https://forum.kirupa.com/t/cursor/6209/21 "2002-10-09T21:21:13Z")

</div>

Lost:

I see. Cheers.

---

<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:** [October 9, 2002, 9:22pm UTC](https://forum.kirupa.com/t/cursor/6209/22 "2002-10-09T21:22:48Z")

</div>

Ilyas \> So the buttons can’t say “hey” - that’s tough for them… ![](http://flex.funkyolive.com/im/cool.gif)

---

<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:** [October 9, 2002, 9:22pm UTC](https://forum.kirupa.com/t/cursor/6209/23 "2002-10-09T21:22:53Z")

</div>

Thanks. I was starting to think I was going crazy.

“I swore it worked…I really do…could I be wrong? No, I am not wrong! Or am I? WHAT DO I DO???” :crazy:

---

<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:** [October 9, 2002, 9:25pm UTC](https://forum.kirupa.com/t/cursor/6209/24 "2002-10-09T21:25:35Z")

</div>

So, let get this straight - Lost’s method works? I didn’t know if Ilyas was being sarcastic…

---

<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:** [October 9, 2002, 9:27pm UTC](https://forum.kirupa.com/t/cursor/6209/25 "2002-10-09T21:27:55Z")

</div>

My method worked for me.

---

<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:** [October 9, 2002, 9:30pm UTC](https://forum.kirupa.com/t/cursor/6209/26 "2002-10-09T21:30:18Z")

</div>

OK, I don’t know who’s answering who anymore, but this (I’ve just seen the but.onRollOver, sorry)

```auto
Button.prototype.onRollOver = function() {
	this.useHandCursor = false;
	but.onRollOver = function() {
		trace("hey");
	};
};

```

does’t make sense. This will reassign all the rollovers whenever you rollover a button :crazy: And if you have to define all the rollover INSIDE THE ROLLOVER prototype… well it’s just useless. This method is basically the same as declaring all the buttons useHandCursor=false one by one, and then give them an onRollOver, only it’s worse. 🙂

What I’m trying to say (poorly) it that you can’t touch the onRollOver. You have to do something else. All we have to do is find out what…

pom 😛

---

<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:** [October 9, 2002, 9:33pm UTC](https://forum.kirupa.com/t/cursor/6209/27 "2002-10-09T21:33:36Z")

</div>

Interesting.

I tried declaring it outisde of the prototype, but then the useHandCursor = false doesn’t work.

But when I declared it inside the prototype, everything worked peachy keen.

Hmm, I don’t know of any other methods :-\

Unless you make a movie Clip a button and declare the useHandCursor on the movie clip :q:

---

<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:** [October 9, 2002, 9:34pm UTC](https://forum.kirupa.com/t/cursor/6209/28 "2002-10-09T21:34:36Z")

</div>

Lost, I 'm taking back my thanks ![](http://www.kirupa.com/forums/smileys_files/stickpoke.gif). Hehe

---

<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:** [October 9, 2002, 9:35pm UTC](https://forum.kirupa.com/t/cursor/6209/29 "2002-10-09T21:35:28Z")

</div>

My method works, its just not optimized!!!

---

<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:** [October 9, 2002, 9:37pm UTC](https://forum.kirupa.com/t/cursor/6209/30 "2002-10-09T21:37:49Z")

</div>

Oh, so it works. Hmm this is a bit sh\*\*\*y. One thing works, then it doesn’t, then it does. So if your way works but not optimised, then I suppose you still get half a thanks.

---

<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:** [October 9, 2002, 9:39pm UTC](https://forum.kirupa.com/t/cursor/6209/31 "2002-10-09T21:39:56Z")

</div>

Half is better than none 😛

---

<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:** [October 9, 2002, 9:45pm UTC](https://forum.kirupa.com/t/cursor/6209/32 "2002-10-09T21:45:00Z")

</div>

> \*Originally posted by lostinbeta \*  
> \*\*My method works, its just not optimized!!! \*\*  
> If you’re talking about the one I quoted in my last message, I’m sorry, but it is anti-optimized. 😛 It is much easier, and logical, to put

```auto
but1.useHandCursor=false;
but2.useHandCursor=false;
//...
but1.onRollOver=function(){
//...
}

```

I don’t know how I can explain this any better: your method doesn’t solve any problem (which is to disable the hand on all buttons): you’re doing the same as I’ve just written, except in a twisted, uneffective way.

Sorry if I seem so hard, it’s late here, and my English is leaving me :\*(

pom :asian:

---

<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:** [October 9, 2002, 9:47pm UTC](https://forum.kirupa.com/t/cursor/6209/33 "2002-10-09T21:47:54Z")

</div>

OK, let me rephrase and ask you one question

_deep breath_

Why do you need to modify the onRollOver method for?

pom 😏

---

<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:** [October 9, 2002, 9:49pm UTC](https://forum.kirupa.com/t/cursor/6209/34 "2002-10-09T21:49:27Z")

</div>

But if it is uneffective, why does it work? I knew it was anti-optimized, it is impossible for me to create something that is optimized, haven’t you been reading my threads! 😛

I tried your method and the “but” used the handCursor. So what other way is there to have “but” trace something but not use the hand cursor?

I am getting interested in finding this out 🙂

---

<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:** [October 9, 2002, 9:52pm UTC](https://forum.kirupa.com/t/cursor/6209/35 "2002-10-09T21:52:59Z")

</div>

```auto
but.useHandCursor=false;
but.onRollOver=function(){
   trace("hey");
}

```

So? Why do you need to modify the onRollOver method for?  
🙂

---

<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:** [October 9, 2002, 9:55pm UTC](https://forum.kirupa.com/t/cursor/6209/36 "2002-10-09T21:55:44Z")

</div>

Well with that method it works, but I was trying to figure it out with the prototype.

Because with the method you just used, you will need to add that code for every button.

I suppose it is better that nothing though 😛

---

<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:** [October 9, 2002, 10:00pm UTC](https://forum.kirupa.com/t/cursor/6209/37 "2002-10-09T22:00:32Z")

</div>

Yes, but with your code, you have to define IN THE PROTOTYPE all the rollOvers of all the buttons in the whole movie. :-\

The purpose of prototype methods is to define very general methods that the whole class will use. Then if you have to define all the behaviour of all the elements of that class, this is not dynamic at all, it kinda defeats the purpose. You see what I mean?

pom 😏

---

<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:** [October 9, 2002, 10:03pm UTC](https://forum.kirupa.com/t/cursor/6209/38 "2002-10-09T22:03:49Z")

</div>

Yes sir:(

---

<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:** [October 9, 2002, 10:12pm UTC](https://forum.kirupa.com/t/cursor/6209/39 "2002-10-09T22:12:07Z")

</div>

😛 Don’t take it like 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:** [October 9, 2002, 10:19pm UTC](https://forum.kirupa.com/t/cursor/6209/40 "2002-10-09T22:19:20Z")

</div>

Truly sorry if I pissed you off ☹

[Previous page](https://forum.kirupa.com/t/cursor/6209.md?page=1)

[Next page](https://forum.kirupa.com/t/cursor/6209.md?page=3)
