Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

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

Community Beginner ,
Apr 19, 2013 Apr 19, 2013

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.

TOPICS
ActionScript
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 19, 2013 Apr 19, 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

Translate
LEGEND ,
Apr 19, 2013 Apr 19, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 19, 2013 Apr 19, 2013
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines