我创建了一组透明的闪光按钮,这些按钮在某种程度上有效,但当您将鼠标悬停在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:info@cpizzli.com));
}
答案 0 :(得分:0)
您的问题不是来自此代码。你只需要放置透明的闪光按钮 在图标上(它们在它们之下)。