PDA

View Full Version : controlling mouse cursor "look" on rollover



xmattx
May 22nd, 2003, 11:44 PM
how in mx do you make it so on mouseover the mouse doesnt turn into "the hand" or "click" shape and just stays in it's normal state as if it were over a non dynamic object?

I know this isnt to hard... any help is apreciated?

thanks!

dr.ew
May 23rd, 2003, 12:13 AM
Do this for each button instance:

buttonname.useHandCursor = false;

hope that helps.=]

xmattx
May 23rd, 2003, 12:44 AM
this should just go in the first frame of the movie correct?

..it doesnt seem to be working :-\

nobody
May 23rd, 2003, 12:48 AM
I just tested it matt and it should work, you need to change the 'buttonname' to the instance name you gave your button.. that is the only thing I could see being wrong

(yes, it should be in the first frame)

xmattx
May 23rd, 2003, 12:53 AM
right.... i did that.. doesnt seem to be working for me. is this compatiable with all systems. im running xp proffesional.

nobody
May 23rd, 2003, 12:53 AM
I'd assume it's compatible... I'm using XP Home...
Are you using Flash MX?

ahmed
May 23rd, 2003, 12:56 AM
give the button an instance name in the properties panel and use that name instead of 'buttonname'

nobody
May 23rd, 2003, 12:57 AM
Here, I went ahead and made you a .fla

http://www.xxviii.net/random/hidden.fla

nobody
May 23rd, 2003, 12:58 AM
dangit ahmed.. I was tryin to help someone
GRRR

:P:beam:

ahmed
May 23rd, 2003, 12:59 AM
lol :P...

xmattx
May 23rd, 2003, 01:00 AM
yes, flash mx.... right of course i gave it a name.... im not really a newb to actionscript or anything, i just didnt know the condition string... so ya, i have no idea why this is not working... the button im using is an ivisable button... perhaps that could have something to do with it?

nobody
May 23rd, 2003, 01:03 AM
I don't think that should make a difference.. can you post a fla or some code or something?

ahmed
May 23rd, 2003, 01:04 AM
yep..

xmattx
May 23rd, 2003, 01:09 AM
the actionscript had to be placed in the same frame as the button originated... as was done in your file. works great

THANK YOU ALOT!<:}

ahmed
May 23rd, 2003, 01:12 AM
glad it worked :)

thoriphes
May 23rd, 2003, 02:20 AM
you can also do that with regular movieclips and have them act as buttons:

onClipEvent(enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
trace("released");
}
}
as you may or may not know, that code has to go in the movieclip.

xmattx
May 23rd, 2003, 03:18 AM
thats a good way of doing it also... however then you render the onmouse events that of course come with using a button as useless. (since MC do not have the same events.)

good way to do it.. just not for what im doing. thanks though! its all set now anyway:)

thoriphes
May 23rd, 2003, 11:13 AM
oh i forgot to mention that you can set certain functions dealing with the mouse too...
this.onMouseDown = function() {};=)