Copy link to clipboard
Copied
Hello, i have a problem running this program. an error "function does not have a body" pops up, do you guys know how i can fix this?
stop();
import flash.events.MouseEvent
start_.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
gotoAndStop(1,"Scene 247");
gotoAndStop(1,"Menu");
Aside from what what already offered, you cannot gotoAndStop at two different places at the same time, so pick one.
Copy link to clipboard
Copied
no curly brackets holding the code:
try this
function onClick(event:MouseEvent):void {
gotoAndStop(1,"Scene 247");
gotoAndStop(1,"Menu");
}
Copy link to clipboard
Copied
Aside from what what already offered, you cannot gotoAndStop at two different places at the same time, so pick one.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more