开发者

Flash AS3: Cursor hand not display in Firefox

I have the code below adding a movie clip to my stage and setting the buttonMode to true. I can see the cursor hand in Chrome but not in Firefox. I do not have any text inside of this movie clip. Any ideas?

//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:URLR开发者_开发问答equest = new URLRequest("http://mc.com/");
    //navigateToURL(targetURL);
    navigateToURL(new URLRequest("http://mc.com"), "_blank");
}

mcLogo.addEventListener(MouseEvent.CLICK, gotoHomePage);


This is a bug with Firefox. It was introduced in Firefox 4 and was not addressed in Firefox 5. "useHandCursor" will not fix this.


I guess you're using Firefox 4.0. There seems to be a bug in Firefox 4.0 regarding Flash and mouse-cursor (also affects Mouse.hide()). Apparently there's nothing you can do about it for now... Also have a look at this Firefox help thread.


Add these two lines after the button mode line :

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜