Forum Topic: Mouse.hide();} Help

(77 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

Blain-The-Pain

Reply To Post Reply & Quote

Posted at: 2/18/09 09:44 AM

Blain-The-Pain DARK LEVEL 11

Sign-Up: 09/29/07

Posts: 467

I'm making a basic mouse avoider game, and I have my own custom cursor and all that. Everything works perfectly except when the player clicks off of the game into a different window and then click back into the game, the mouse is visible again. Is there any way to fix this?

I would post all of the code I have on my "cursor" MC but I'm pretty sure that this is a general problem with Flash and not a problem with my code. If you need to know, the code for the cursor is a modified version of Penboy's, seen here.

Don't worry, the rest of the coding in the game was done by me.

f


None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 2/18/09 09:52 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,326

Add Mouse.hide to be called onMouseDown.

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

Blain-The-Pain

Reply To Post Reply & Quote

Posted at: 2/18/09 10:20 AM

Blain-The-Pain DARK LEVEL 11

Sign-Up: 09/29/07

Posts: 467

At 2/18/09 09:52 AM, GustTheASGuy wrote: Add Mouse.hide to be called onMouseDown.

Thank you for the quick reply, I'm pretty sure that did it.

f


Happy

Kwing

Reply To Post Reply & Quote

Posted at: 2/18/09 01:42 PM

Kwing DARK LEVEL 24

Sign-Up: 07/24/07

Posts: 1,912

Or you could put the actions on a Movie Clip so it was on an enterFrame handler, this would make it constantly hide the mouse.


None

TheSongSalad

Reply To Post Reply & Quote

Posted at: 2/18/09 03:00 PM

TheSongSalad NEUTRAL LEVEL 10

Sign-Up: 01/17/09

Posts: 1,335

onClipEvent(enterFrame){
     Mouse.hide();
}

All times are Eastern Standard Time (GMT -5) | Current Time: 02:56 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!