# Cursor problem

**URL:** <https://forum.kirupa.com/t/cursor-problem/6049>\
**Category:** flash\
**Created:** [September 28, 2002, 7:43am UTC](https://forum.kirupa.com/t/cursor-problem/6049 "2002-09-28T07:43:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CLoudStrife](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@CLoudStrife](https://forum.kirupa.com/u/CLoudStrife)\
**Post date:** [September 28, 2002, 7:43am UTC](https://forum.kirupa.com/t/cursor-problem/6049/1 "2002-09-28T07:43:04Z")

</div>

I want to keep my cursor an arrow even when it goes over an active button. How do I do it?

---

<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:** [September 28, 2002, 9:25am UTC](https://forum.kirupa.com/t/cursor-problem/6049/2 "2002-09-28T09:25:38Z")

</div>

make the button a movie clip and use the same code as a button:

on (release) {  
//  
}

---

<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:** [September 28, 2002, 9:52am UTC](https://forum.kirupa.com/t/cursor-problem/6049/3 "2002-09-28T09:52:20Z")

</div>

will the buttons still do its action?

---

<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:** [September 28, 2002, 10:02am UTC](https://forum.kirupa.com/t/cursor-problem/6049/4 "2002-09-28T10:02:22Z")

</div>

If the previous button’s actions were

\_root.gotoAndPlay(2)

take the actions off the button, select the button, press f8, turn it into a movie clip, and put:

on (release) {  
\_root.gotoAndPlay(2)  
}

In MX you can use the same event handlers for mcs and you can for buttons, however you won’t have the up, down states, etc, but it’s easy, to add animations to the mc - and you have more versatility.

---

<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:** [September 28, 2002, 10:11am UTC](https://forum.kirupa.com/t/cursor-problem/6049/5 "2002-09-28T10:11:11Z")

</div>

what if i need an up down…?

---

<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:** [September 28, 2002, 10:14am UTC](https://forum.kirupa.com/t/cursor-problem/6049/6 "2002-09-28T10:14:17Z")

</div>

Depends what effect you want - I’ll post a fla you can use. There are other ways - to avoid the cursor - but this is the easiest - and many sites use mcs as buttons because you can create more advanced effects with them.

---

<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:** [September 28, 2002, 10:21am UTC](https://forum.kirupa.com/t/cursor-problem/6049/7 "2002-09-28T10:21:14Z")

</div>

Move your mouse over the rectangle and it changes colour, click on it and the circle changes colour. Just look at how the rollover send the mc to next frame for the rollover effect. You could also use gotoAndPlay or gotoAndStop but it depends on the effect you want.

---

<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:** [September 28, 2002, 10:58am UTC](https://forum.kirupa.com/t/cursor-problem/6049/8 "2002-09-28T10:58:09Z")

</div>

it would help if the thing worked. I have a gray square. When i move the mouse over it it’s supposed to get bigger and the mouse should stay in the shape of an arrow.

---

<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:** [September 28, 2002, 11:18am UTC](https://forum.kirupa.com/t/cursor-problem/6049/9 "2002-09-28T11:18:01Z")

</div>

> \*Originally posted by CLoudStrife \*  
> \*\*it would help if the thing worked. I have a gray square. When i move the mouse over it it’s supposed to get bigger and the mouse should stay in the shape of an arrow. \*\*

I’m not getting paid to help you.

Try this one. That was just demonstrating an mc as a button.

And you never mentioned anything about getting bigger or an arrow

---

<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:** [September 28, 2002, 11:29am UTC](https://forum.kirupa.com/t/cursor-problem/6049/10 "2002-09-28T11:29:27Z")

</div>

Actually - you did mention the arrow - which is what the new fla. does keeps the cursor as an arrow, but as for the getting bigger - look at how the next frame changes the button’s colour, just make that keyframe, the button scaled up.

---

<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:** [September 28, 2002, 11:39am UTC](https://forum.kirupa.com/t/cursor-problem/6049/11 "2002-09-28T11:39:02Z")

</div>

sorry im not trying to be rude. Its just that the thing isnt working.

---

<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:** [September 28, 2002, 11:42am UTC](https://forum.kirupa.com/t/cursor-problem/6049/12 "2002-09-28T11:42:54Z")

</div>

Can you post a fla of the button? Or describe what you want to happen to the button - you said you wanted it bigger - you can do that by following the previous post - what’s not working exactly?

---

<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:** [September 28, 2002, 11:44am UTC](https://forum.kirupa.com/t/cursor-problem/6049/13 "2002-09-28T11:44:00Z")

</div>

the attachment on your posts. all it gives me is a circle and a rectangle. I hit test movie and nothing happened.

---

<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:** [September 28, 2002, 11:48am UTC](https://forum.kirupa.com/t/cursor-problem/6049/14 "2002-09-28T11:48:28Z")

</div>

[http://flex.funkyolive.com/test/simplemcbutton2.swf](http://flex.funkyolive.com/test/simplemcbutton2.swf)

thats how it should work.

Tell me if thats right and I’ll post the code.

---

<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:** [September 28, 2002, 11:51am UTC](https://forum.kirupa.com/t/cursor-problem/6049/15 "2002-09-28T11:51:00Z")

</div>

the rectangles right but the circle should change on a rollover

---

<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:** [September 28, 2002, 12:03pm UTC](https://forum.kirupa.com/t/cursor-problem/6049/16 "2002-09-28T12:03:35Z")

</div>

If you have flash MX the fla should open fine. You need to understand the workings of the actionscript to change to what you what. What don’t you understand about the script.

---

<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:** [September 28, 2002, 12:43pm UTC](https://forum.kirupa.com/t/cursor-problem/6049/17 "2002-09-28T12:43:19Z")

</div>

everything. for now though, i just want my cursor to stay in the form of an arrow (instead of a pointing finger) when it goes over buttons

---

<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:** [September 28, 2002, 12:54pm UTC](https://forum.kirupa.com/t/cursor-problem/6049/18 "2002-09-28T12:54:53Z")

</div>

Ok. Make a button.

turn it into a movie clip

put this code on it:

```php
onClipEvent(enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// code, could be nextFrame or could be gotoAndPlay(wherever)
// for the rollover
}
}

```

and

```php
onClipEvent(mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// code - what you want to happen when clicked
}
}

```

---

<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:** [September 28, 2002, 1:46pm UTC](https://forum.kirupa.com/t/cursor-problem/6049/19 "2002-09-28T13:46:40Z")

</div>

ONE THING WHAT DOES PHP STAND 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:** [September 28, 2002, 1:52pm UTC](https://forum.kirupa.com/t/cursor-problem/6049/20 "2002-09-28T13:52:20Z")

</div>

Don’t worry about PHP - that’s just a tag you can use in replying to people here so that code tags don’t get mixed up with forum tags

```php
onClipEvent

```

```auto
onClipEvent

```

Just tags.

[Next page](https://forum.kirupa.com/t/cursor-problem/6049.md?page=2)
