开发者

as3: why cursor won't hide?

开发者 https://www.devze.com 2023-04-12 02:51 出处:网络
I\'ve tried everything... it won\'t hide. Obviously tried Mouse.hide() tried different player versions (10.2, 10.3, 11)

I've tried everything... it won't hide.

  • Obviously tried Mouse.hide()
  • tried different player versions (10.2, 10.3, 11)
  • tried Mouse.hide() everytime there is a mouse event开发者_如何学JAVA on the stage
  • tried compiling to swf, projector, debug player...

I'm on Mac OS Lion, and I suspect this is the problem, but I'm not sure. As I can't try on another machine. Never had this problem until I upgraded to Lion and CS5.5 at the same time.

I'm out of ideas...

I'm compiling with Flash IDE CS5.5 version 11.5.1.

Any idea is appreciated.

TIA

Update: in fact the only way to hide the cursor is to switch to another application and then come back to the flash projector.


Try setting your wmode option to window when embedding the swf.


So I came back to this problem after some time and the solution in my particular case was this.

Mouse.show();
Mouse.hide();

It works with the projector player 11.1 in Mac Os 10.7.3.


This bug still exists but I've run across a workaround. This problem only shows up if the application is set up to start in full screen.
Without fullscreen mode on Flash Player the cursor will go away with Mouse.hide(); Then in Flash Player, select Full Screen from the menu. Sometimes it takes a couple of times.

In a pinch, this was a very useful discovery, although it is by no means an acceptable workaround for all occasions.

I'm using Flash Player 14 on OSX

0

精彩评论

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