我有一个函数(gofromTheFuture)来控制补间对象然后链接到各种按钮,但我也希望从下面这个函数调用它,但是flash给了我这个错误: 参数数量不正确。预计1。
function exitHandler(event:Event):void
{
event.preventDefault();
gofromTheFuture();
}
function gofromTheFuture(evt:Event):void{
myTimeline2.insertMultiple( TweenMax.allTo([TheFutureArtwork, pausebutton, playbutton, Verse, Chorus, Verseto1, Verseto2, Chorusto1, Chorusto2, rewind, fastforward, progressline, progressbar, TheFutureComments],
0.25, {x:"450", autoAlpha:0, onComplete:exitAnimation}) );
}
function exitAnimation():void {
trace("Return to main menu.");
gotoAndStop(1, "Menu");
}
如何在此功能中调用此gofromTheFuture? 感谢
答案 0 :(得分:1)
尝试将gofromTheFuture()
更改为:
function gofromTheFuture(evt:Event = null):void