Mouse.hide()不适用于htmlText上的超链接

时间:2013-03-12 00:16:33

标签: actionscript-3 flash air

我使用Mouse.hide();函数使用flash professional cs5.5(为AIR 2.5编译)将鼠标光标隐藏在AS3上。在几乎竞争场景中,鼠标指针被隐藏,但如果你有一个带有html内容的文本字段,当你悬停超链接<a>时鼠标会重新出现。我需要链接可点击但没有鼠标光标,因为应用程序打算在触摸屏上运行。

1 个答案:

答案 0 :(得分:0)

AIR中的

Mouse.hide()实际上并不像flash中那样工作(已检查过Mac,但是?)

解决方法here一直作为解决方案浮出水面:

stage.nativeWindow.activate();
stage.nativeWindow.orderToBack();
stage.nativeWindow.orderToFront();
Mouse.hide();