Skip to main content
Inspiring
May 20, 2008
Answered

1126: Function does not have a body.

  • May 20, 2008
  • 2 replies
  • 1388 views
This error (1126: Function does not have a body.
This topic has been closed for replies.
Correct answer rbranaghan
Never mind, it was simply a misplaced semicolon.

2 replies

Ned Murphy
Legend
May 20, 2008
Lose the semicolon on your trial function:

function trial():void;
{
...


After that you'll find you have a problem with "trialnum" (which should be "trial Num") and "Next_mc", which doesn't exist except for adding an event listener to it.
rbranaghanAuthorCorrect answer
Inspiring
May 20, 2008
Never mind, it was simply a misplaced semicolon.