PDA

View Full Version : Hide Mouse


Xansi
10-28-2002, 05:57 PM
Hello.
My question is this: I have a MC with a map on it. Over the map the mouse changes to a magnifying glass, wich is a MC too, locked to the mouse plus mouse.hide(). The problem is that I want to make disapear the magnifying glass when it is outside the map, so I don't know what property I have to use to make this work.

:confused:
any ideas?

CyanBlue
10-28-2002, 05:59 PM
Howdy... :)

I think you can use hitTest() to check if the mouse pointer is inside the map or not so that you can apply the mouse change code with it...

Xansi
10-28-2002, 06:06 PM
Thanks for your answer :) IŽll check it out this now.

Xansi
10-28-2002, 06:14 PM
I found another solution (maybe not the best):

The map is a button, with this script:
on (rollOver) {
mouse.hide();
setProperty("yourMovieComponent01", _alpha, "100");
setProperty("yourMovieComponent02", _alpha, "100");
}
on (rollOut) {
mouse.show();
setProperty("yourMovieComponent01", _alpha, "0");
setProperty("yourMovieComponent02", _alpha, "0");
}

Hope this is not the most complicated way to do it! :D

CyanBlue
10-28-2002, 06:19 PM
Yup... That should do the job if that map is a button... Well. actually if it is done in FMX... :)

Xansi
10-28-2002, 06:22 PM
Yep, I forgot to say it is for Flash MX.

farafiro
10-29-2002, 06:18 AM
Originally posted by CyanBlue
Yup... That should do the job if that map is a button... Well. actually if it is done in FMX... :) Or if that map id a MC, only if it's FMX