
September 28th, 2004
05:45 AM
A few mousecursor problems
I've got a flashmovie where I use the Mouse.hide(); command to hide the mousecursor. When I preview the movie, or publish the movie and play it in flashplayer, it hides the cursor. When I however play it in a webbrowser, the cursor remains visible. Is there any way around this?
Another mousequestion :
Is there any way to change the position of the mousecursor?
Thanks!
___________________
mWòÓh
MSN :aastalker@hotmail.com

September 28th, 2004
10:25 AM
has crap-for-brains
Status: Offline!
it only hides the mouse, if it is inside the flash application. if you take the mouse outside of it, its visible again, eh? Theres no way i know of avoiding this. sorry bud

September 28th, 2004
11:41 PM
Very weird, yesterday the mouse was showing even when -inside- the flash movie, but today it's working fine. Maybe it wasn't refreshing properly?
My other question was if you could change the mousecursor's position. So if you have your mouse at the top of your movie have it immediately "jump" to the bottom of your flash movie?
___________________
mWòÓh
MSN :aastalker@hotmail.com

September 29th, 2004
12:45 AM
Yeah i'm sure people would appreciate it if the mouse started moving on its own 
If you're using a custom cursor, it is sort of possible. Although you wouldn't change the actual position of the mouse cursor, but the graphic that represents it. Yeah you can do that, but the clicking "hotspot" can't be changed by flash. And that's for a very good reason.

September 30th, 2004
03:57 AM
That would pose a problem as the actual mousecursor could be moved out of the flash movie and so your custom cursor won't be able to move anymore.
And no I'm not some llamo who wants to drive people crazy 
I'm actually working on a airhockey game where I have the problem that after I have a collision with the ball, the user can just keep dragging his mouse towards the ball and it will get stuck. At the moment I minimized this by immobilizing his controller for a few frames after a collision, but it doesn't feel very smooth.
That's why I wanted to have the mouse "jump" to the position of the center of the ball at the point of collision. I figured if the actual mousecursor wasn't visible it wouldn't bother.
___________________
mWòÓh
MSN :aastalker@hotmail.com

September 30th, 2004
04:59 AM
OIC... I trust that you're not some llamo who wants to drive people crazy, but about 10 million other people are
that's why it's impossible.
Couldn't you use a timeout after collision, so that you won't be able to hit the ball at all for a few milliseconds after hitting it? That way you can still move the cursor without getting interrupted by a strange position jump.

September 30th, 2004
06:09 AM
Hmm maybe, but you'd be able to hit a wall and have it bounce right back through you no?
Though now that I'm rewriting the collision detection code for another project I noticed I made a few mistakes that could be adding to the bugginess of collisions as well. So if those are fixed and the timeout after collision reseted when the ball hits a wall, then maybe it'd work properly (apart from being able to get balls stuck between the ball and yourself, that's where mousejumping would come in real handy).
Either way, here's how it stands :
http://207.44.182.42/~mwooh/flashgames/airhockey.html
What could you do wrong with having the mousecursor jump around the screen tho? Wouldn't you just hotkey close the screen?
___________________
mWòÓh
MSN :aastalker@hotmail.com
Last edited by Fofo, September 30th, 2004 06:12 AM (Edited 1 times)