2011-05-25 57 views
1

我有下面的代碼添加一個影片剪輯到我的舞臺,並將buttonMode設置爲true。我可以在Chrome瀏覽器中看到光標而不是在Firefox中。此影片剪輯中沒有任何文字。有任何想法嗎?Flash AS3:光標手不顯示在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); 

回答

0

我猜你使用Firefox 4.0。 Firefox 4.0中似乎存在一個關於Flash和鼠標光標的錯誤(也影響Mouse.hide())。顯然目前沒有什麼可以做的......也看看這個Firefox help thread

0

添加這兩行的按鈕模式行之後:

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

似乎沒有工作。這些線路是否有特定的順序? – Dan 2011-05-25 18:00:37

+0

我編輯了答案並添加了一行,因爲我不知道mcLogo的組成。你有什麼版本的Firefox?另外,你有什麼版本的Flash播放器在Firefox?如果可能的話,你可以把一個鏈接到.swf,以便我可以在Firefox中檢查它。 – prototypical 2011-05-25 18:11:07

+0

是的 - 可能只是想確保沒有其他舞臺元素覆蓋剪輯。理想情況下,如果剪輯包含其他剪輯,則應該在剪輯中放置一個按鈕,專門執行任何點擊操作。 – mheavers 2011-05-25 21:24:00

1

這是Firefox的一個錯誤。它是在Firefox 4中引入的,並未在Firefox 5中解決。「useHandCursor」不會解決此問題。