永发信息网

求助FLASH AS修改

答案:1  悬赏:0  手机版
解决时间 2021-07-30 22:19
  • 提问者网友:孤凫
  • 2021-07-29 23:23

case 4:

{
trace ("Actions button 4 - MP3");
stick(menuHolder_.menu_mc.btn4);
gs.TweenMax.to(sectionHolder.mp3Player, 2, {_x: -120, _y: 275, bezierThrough: [{_x: -300, _y: 0}], _xscale: 100, _yscale: 100, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.jobImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.jobTxtVak, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.homeImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.homeTxtVak, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.contactImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.contactForm, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.renchouImg, 1, {_x: -20, _y: 75, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1})
break;
}

//上面这个是一个菜单的调用脚本,btn4是按牛实例名字,.mp3Player,是按按牛过后连接到的元件。//

case 5:

{
trace ("Actions button 5 - renchou");
stick(menuHolder_.menu_mc.btn5);
gs.TweenMax.to(sectionHolder.renchou, 2, {_x: -20, _y: 75, bezierThrough: [{_x: -300, _y: 0}], _xscale: 100, _yscale: 100, ease: sectionTransitionType, delay: sectionDelay2})
gs.TweenMax.to(sectionHolder.mp3Player, 1, {_x: -20, _y: 75, bezierThrough: [{_x: -300, _y: 0}], _xscale: 100, _yscale: 100, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.jobImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.jobTxtVak, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.homeImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
gs.TweenMax.to(sectionHolder.homeTxtVak, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.contactImg, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay1});
gs.TweenMax.to(sectionHolder.contactForm, 1, {_x: 0, _y: 0, bezierThrough: [{_x: 300, _y: 0}], _xscale: 0, _yscale: 0, ease: sectionTransitionType, delay: sectionDelay2});
break;
}

//原本只有4个菜单,这个是我多加的,结果添加后没用。按按牛没反应请问大侠们如何修改?//

最佳答案
  • 五星知识达人网友:老鼠爱大米
  • 2021-07-30 00:59

应该是按钮事件代码没有好好的处理。

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯