|
-
Mouse.hide() does not always work with Fullscreen projector.
Hello. I am trying to ensure that the mouse pointer stays hidden in a full screen flash projector. I'm using AS2 and the code is below. When the flash projector first launches in full-screen mode, the code works. However, as soon as I right-click, the mouse re-appears and stays there. It does not hide again when moved. What is interesting is that when viewing my project in the flash player but NOT in full screen mode, the same thing happens....but when I move the mouse off of the flash movie (to the OS X Finder, for example), and then mouse back over the flash movie, the mouse once again hides. It's as if the listener only works once in full-screen mode. Anyone have any ideas here? Thanks so much!
//Add listener to stage to make sure mouse stays hidden
var mListener:Object = new Object();
mListener.onMouseMove = function():Void {
Mouse.hide();
};
mListener.onMouseDown = function():Void {
Mouse.hide();
};
if (Key.isDown(2)){
Mouse.hide();
}
Mouse.addListener(mListener);
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|