Flash AS3:光标指针在Firefox中不显示

问题描述

| 我在下面的代码中将影片剪辑添加到舞台并将buttonMode设置为true。我可以在Chrome中看到光标,但在Firefox中看不到。该影片剪辑内没有任何文本。有任何想法吗?
//get the objects
var mcLogo:mc_logo_still = new mc_logo_still();

mcLogo.buttonMode = true;

//add the still object to the stage
addChild(mcLogo);
var mcLogo_X = 142.00;
var mcLogo_Y = 66.00;
mcLogo.x = mcLogo_X;
mcLogo.y = mcLogo_Y;


//set up the link
function gotoHomePage(event:MouseEvent):void {
    //var targetURL:URLRequest = new URLRequest(\"http://mc.com/\");
    //navigateToURL(targetURL);
    navigateToURL(new URLRequest(\"http://mc.com\"),\"_blank\");
}

mcLogo.addEventListener(MouseEvent.CLICK,gotoHomePage);
    

解决方法

我猜您正在使用Firefox 4.0。 Firefox 4.0中似乎存在有关Flash和鼠标光标的错误(也影响
Mouse.hide()
)。显然,您目前无法对此进行任何操作。也可以查看此Firefox帮助线程。     ,这是Firefox的错误。它是在Firefox 4中引入的,而在Firefox 5中未解决。\“ useHandCursor \”将无法解决此问题。     ,在按钮模式行之后添加以下两行:
mcLogo.useHandCursor = true;
mcLogo.mouseChildren = false;
    

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...