actionscript 3-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的一个错误。它是在Firefox 4中引入的,在Firefox 5中没有提及。"useHandCursor"不会修复此问题。

我猜您使用的是Firefox 4.0。Firefox 4.0中似乎有一个关于Flash和鼠标光标的错误(也影响Mouse.hide())。显然你现在对此无能为力。。。还可以看看这个Firefox帮助线程。

在按钮模式行之后添加这两行:

mcLogo.useHandCursor = true;
mcLogo.mouseChildren = false;

最新更新