开发者

actionscript 3 - how to hide default cursor in chrome? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.

This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.

Closed 11 months ago.

Improve this question

is there 开发者_运维问答a way to hide default cursor[flash]when it's opened using chrome?

i can hide it using ordinary way when it's opened using firefox/IE but somehow it doesn't work when it's opened using google chrome.


I've tried this

import flash.ui.Mouse;
Mouse.hide();

and it worked for me in google chrome.


This appears to be a verified bug in Chromium, only on Mac:

https://code.google.com/p/chromium/issues/detail?id=32703


The cursor cannot be hidden in Chrome when Flash is running in "opaque" or "transparent" window mode (a bug).

The workaround would be - if your Flash application can run without this mode - to set your wmode option to "window" or remove the option (the default is "window").

The wmode option is something u would change in your HTML file, where either the flash HTML tag is generated or has been put there staticly. Just open up your HTML file and search for the word "wmode".


then try to add a timer first that calls the Mouse.hide() function. Something like:

 var myTimer : Timer;
 myTimer = new Timer(300, 1);
 myTimer.addEventListener("timer", timerHandler);
 myTimer.start();


 function timerHandler(event:TimerEvent):void {
 Mouse.hide();
 myTimer.stop();
 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜