Jump to content
xisto Community
Sign in to follow this  
Lozbo

Hide Mouse On Roll Over but does not hide

Recommended Posts

Flash object: Mouse, has a method for hiding the mouse pointer, obvious.

I have a movie clip with this:

on (rollOver) {	_root.Mouse.hide;	startDrag("/lupa", true);}on (rollOut) {	Mouse.show;	_root.lupa.stopDrag();}

It does show my custom pointer, but the mouse keeps showing a finger which means that the object is "clickable". I think i could use another structure to get rid of this, but im too lazy for it. Isnt it suposed to hide the hand-pointer too?

Thanks in advance!

Share this post


Link to post
Share on other sites

ok ,you maybe are forgetting the root before Mouse.hide(), in the rollout event, try it, and yes, there is other way to get what you want and here it goes:

1. in your rollover and rollout events, cut the startDrag and stopDrag commands, and change it with:

//this goes in rollover eventdragging = true;//this goes in rollout eventdragging = false;//and then add this enterframe event:onClipEvent(enterFrame){    if(dragging)    {        Mouse.hide();        _x = _root._xmouse;        _y = _root._ymouse;    }    else        Mouse.show();}

just reference the movieclip you want to drag, and that's all! you are done!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.