Dan
Dan

Reputation: 3358

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:URLRequest = new URLRequest("http://mc.com/");
    //navigateToURL(targetURL);
    navigateToURL(new URLRequest("http://mc.com"), "_blank");
}

mcLogo.addEventListener(MouseEvent.CLICK, gotoHomePage);

Upvotes: 1

Views: 2002

Answers (3)

Robert
Robert

Reputation: 11

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

Upvotes: 1

bummzack
bummzack

Reputation: 5875

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.

Upvotes: 0

prototypical
prototypical

Reputation: 6751

Add these two lines after the button mode line :

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

Upvotes: 0

Related Questions