-1
我創建了一組透明閃光按鈕,它們在某種程度上工作,但是當您將鼠標懸停在FaceBook,Twitter和Instagram徽標上時,該按鈕不會更改爲鏈接。你必須在按鈕的角落才能變成鏈接。見http://pizzli.com/testanimation.html。這裏是我的按鈕的ActionScript閃光按鈕無法正常工作
import flash.events.MouseEvent;
import flash.net.URLRequest;
b1.addEventListener(MouseEvent.CLICK, b1ClickHandler);
function b1ClickHandler(e:MouseEvent)
{
navigateToURL(new URLRequest("http://www.facebook.com/"));
}
b2.addEventListener(MouseEvent.CLICK, b2ClickHandler);
function b2ClickHandler(e:MouseEvent)
{
navigateToURL(new URLRequest("http://www.twitter.com/"));
}
b3.addEventListener(MouseEvent.CLICK, b3ClickHandler);
function b3ClickHandler(e:MouseEvent)
{
navigateToURL(new URLRequest("http://www.instagram.com/"));
}
b4.addEventListener(MouseEvent.CLICK, b4ClickHandler);
function b4ClickHandler(e:MouseEvent)
{
navigateToURL(new URLRequest("mailto:[email protected]));
}
是的,我意識到堆棧順序是問題。謝謝! – 2014-12-02 18:27:41