Skip to main content
New Participant
April 20, 2013
Answered

Problems with Error "1084: Syntax error:expecting rightbrace before end of program."

  • April 20, 2013
  • 1 reply
  • 1796 views

I can not figure out what i need to do with this because I keep getting the same error:

"1084: Syntax error:expecting rightbrace before end of program."

Here is my code:

begin.onRelease = function() {

rnd = random(8);

if (rnd>3) {

  if (rnd==7) {

   rnd=11;

  } rnd = rnd-7;

} rotate = true;

}

onEnterFrame = function() {

if (rotate) { 

wheel._rotation += ((rnd*45)-wheel._rotation)/10;

}

Thank You.

This topic has been closed for replies.
Correct answer Ned Murphy

Based on what yoiu show there is an ending brace missing... right at the very end.

You are posting AS2 code in the AS3 forum.  If you continue to have a problem, repost in the AS1/2 forum.

http://forums.adobe.com/community/flash/flash_actionscript?view=discussions

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
April 20, 2013

Based on what yoiu show there is an ending brace missing... right at the very end.

You are posting AS2 code in the AS3 forum.  If you continue to have a problem, repost in the AS1/2 forum.

http://forums.adobe.com/community/flash/flash_actionscript?view=discussions

New Participant
April 20, 2013

Well I got it from somebody else but I am trying to get a wheel to spin randomly by the click of a button... Do you have any code for that because the rest of my program is 3.0 and i was under the impression that this was 3.0 as well..

Thanks