I have a function (gofromTheFuture) that controls tweening objects that is then linked to various buttons, however I also want it to be called from this function below, but flash gives me this error: Incorrect number of arguments. Expected 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");
}
How do I call this gofromTheFuture from within this function? Thanks
gofromTheFuture(), can you post that function? Either that or you're trying to callexitHandler()without an Event.