我是 Adobe Flash CS6 的 Actionscript 3.0 的初学者。我正在尝试为网络作品集制作一个基本的、简单的动画交互式徽标,并且在尝试修复徽标中三角形的翻转问题时遇到了问题。使用我自己学习的当前编码,我能够使用电影剪辑而不是按钮来获得很好的动画和反应。但是,即使您试图将鼠标悬停在其后面的影片剪辑上,执行此方法也会导致舞台上最前面的影片剪辑的“命中框”播放其动画。
这是有问题的网页:
http://inancarrow.wix.com/home
请注意,当您滚动到黄色三角形的左角或底角时,蓝色的“游戏”动画或绿色的“技能”动画会淡入并播放,而不是黄色的“连接”动画。
我试图通过尝试将影片剪辑转换为按钮来解决这个小而烦人的问题,当人们将鼠标悬停在形状上时可以做出准确的响应。结果是所有具有动画的影片剪辑都无法控制地播放并循环播放它们的动画。从我所做的搜索来看,它与嵌套电影剪辑有关......
我花了太多时间试图找出问题所在以及如何自己解决问题,这就是为什么我要寻求帮助、建议或洞察力,以了解如何解决重叠翻转问题,或如何解决修复我的movieClips 无法控制地播放。
这是我一直在使用的代码:
RedIFader.addEventListener(MouseEvent.ROLL_OVER, RedIOver);
RedIFader.addEventListener(MouseEvent.ROLL_OUT, RedIOut);
//RedIFader.addEventListener(MouseEvent.ROLL_OVER, RedIClick);
function RedIOver(event:MouseEvent):void{
BioFadeIn.gotoAndPlay("BioFadeInOver")
BlueAFader.gotoAndPlay("BlueAFaderOver")
GreenAFader.gotoAndPlay("GreenAFaderOver")
YellowNFader.gotoAndPlay("YellowNFaderOver")
}
function RedIOut(event:MouseEvent):void{
BioFadeIn.gotoAndPlay("BioFadeInOut")
BlueAFader.gotoAndPlay("BlueAFaderOut")
GreenAFader.gotoAndPlay("GreenAFaderOut")
YellowNFader.gotoAndPlay("YellowNFaderOut")
}
BlueAFader.addEventListener(MouseEvent.ROLL_OVER, BlueAOver);
BlueAFader.addEventListener(MouseEvent.ROLL_OUT, BlueAOut);
//BlueAFader.addEventListener(MouseEvent.ROLL_OVER, BlueAClick);
function BlueAOver(event:MouseEvent):void{
GamesFadeIn.gotoAndPlay("GamesFadeInOver")
RedIFader.gotoAndPlay("RedIFaderOver")
GreenAFader.gotoAndPlay("GreenAFaderOver")
YellowNFader.gotoAndPlay("YellowNFaderOver")
}
function BlueAOut(event:MouseEvent):void{
GamesFadeIn.gotoAndPlay("GamesFadeInOut")
RedIFader.gotoAndPlay("RedIFaderOut")
GreenAFader.gotoAndPlay("GreenAFaderOut")
YellowNFader.gotoAndPlay("YellowNFaderOut")
}
GreenAFader.addEventListener(MouseEvent.ROLL_OVER, GreenAOver);
GreenAFader.addEventListener(MouseEvent.ROLL_OUT, GreenAOut);
//GreenAFader.addEventListener(MouseEvent.ROLL_OVER, GreenAClick);
function GreenAOver(event:MouseEvent):void{
SkillsFadeIn.gotoAndPlay("SkillsFadeInOver")
RedIFader.gotoAndPlay("RedIFaderOver")
BlueAFader.gotoAndPlay("BlueAFaderOver")
YellowNFader.gotoAndPlay("YellowNFaderOver")
}
function GreenAOut(event:MouseEvent):void{
SkillsFadeIn.gotoAndPlay("SkillsFadeInOut")
RedIFader.gotoAndPlay("RedIFaderOut")
BlueAFader.gotoAndPlay("BlueAFaderOut")
YellowNFader.gotoAndPlay("YellowNFaderOut")
}
YellowNFader.addEventListener(MouseEvent.ROLL_OVER, YellowNOver);
YellowNFader.addEventListener(MouseEvent.ROLL_OUT, YellowNOut);
//YellowNFader.addEventListener(MouseEvent.ROLL_OVER, YellowNClick);
function YellowNOver(event:MouseEvent):void{
ConnectFadeIn.gotoAndPlay("ConnectFadeInOver")
RedIFader.gotoAndPlay("RedIFaderOver")
BlueAFader.gotoAndPlay("BlueAFaderOver")
GreenAFader.gotoAndPlay("GreenAFaderOver")
}
function YellowNOut(event:MouseEvent):void{
ConnectFadeIn.gotoAndPlay("ConnectFadeInOut")
RedIFader.gotoAndPlay("RedIFaderOut")
BlueAFader.gotoAndPlay("BlueAFaderOut")
GreenAFader.gotoAndPlay("GreenAFaderOut")
}
感谢您的时间和考虑。