Cursor problem

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

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

on (release) {
//
}

will the buttons still do its action?

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.

what if i need an up down…?

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.

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.

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.

*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

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.

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

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?

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

http://flex.funkyolive.com/test/simplemcbutton2.swf

thats how it should work.

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

the rectangles right but the circle should change on a rollover

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.

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

Ok. Make a button.

turn it into a movie clip

put this code on it:

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

and

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

ONE THING WHAT DOES PHP STAND FOR

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

onClipEvent
onClipEvent

Just tags.