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

1084 Syntax error: expecting rightbrace before end of program.

Community Beginner ,
Sep 28, 2021 Sep 28, 2021

Previous Animate Update introduced a few annoying glitches.  Recent update has corrected them, but now I am getting an error to an AS script file that previously ran (2 updates ago) without fail from another copied .fla. 

I am not going to insist that I dont actually have an syntax error, but I cannot find it, AND when killing the entire layer using /*, the debug posts the same errors.  (I didn't think it read/debug/compiled anyting after /*, ?)

Does anyone know of a something that could trigger the error, or is willing to look at the script and see if I have a legit sytax error needing a right brace - I may have been looking too long, and simply am not seeing it.  According to debug there are four(?), but it does not identify line or column:

 

import flash.events.MouseEvent;
import flash.display.MovieClip;

//troubleshooting

accumTS_BTN.visible = false;
hydPressSwTS_BTN.visible = false;
latchCylTS_BTN.visible = false;
S101TS_BTN.visible = false;
S102TS_BTN.visible = false;
S103TS_BTN.visible = false;
S104TS_BTN.visible = false;
S105TS_BTN.visible = false;
S109TS_BTN.visible = false;
S110TS_BTN.visible = false;
SV6TS_BTN.visible = false;
SV7TS_BTN.visible = false;
SV26TS_BTN.visible = false;
SV14TS_BTN.visible = false;

 

TS_BTN.addEventListener(MouseEvent.CLICK, TSOn);

 

function TSOn(event: MouseEvent): void {
tsButton_mc.play();
troubleshoot = true;
accumTS_BTN.visible = true;
latchCylTS_BTN.visible = true;
S101TS_BTN.visible = true;
S102TS_BTN.visible = true;
S103TS_BTN.visible = true;
S104TS_BTN.visible = true;
S105TS_BTN.visible = true;
S109TS_BTN.visible = true;
S110TS_BTN.visible = true;
SV6TS_BTN.visible = true;
SV7TS_BTN.visible = true;
SV26TS_BTN.visible = true;
SV11TS_BTN.visible = true;
SV14TS_BTN.visible = true;
}

 

//Accumulator failure leaking will not hold reference pressure
//transducer detects leak RESP INOP Light illuminates receiver called Play hose whip mc

 

accumTS_BTN.addEventListener(MouseEvent.CLICK, accumFail);

 

function accumFail(event: MouseEvent): void {
hoseWhipFail = true;
accFails = true;
referenceFails = true;
Accum_mc.play();

if ((currentFrame == 318) || (currentFrame == 674)) {
referenceFlow_mc.gotoAndPlay(238);
accumPiston_mc.gotoAndPlay(138);
AccumLeak_mc.play();}
}

 

//SV6 fails to fully close leaks reference pressure leaks down RESP INOP light comes on reciever call hose whip mc

 

SV6TS_BTN.addEventListener(MouseEvent.CLICK, SV6Fail);

 

function SV6Fail(event: MouseEvent): void {
hoseWhipFail = true;
referenceFails = true;
SV6Fails = true;
SV6Fail_mc.play();

if ((currentFrame == 318) || (currentFrame == 674)) {
referenceFlow_mc.gotoAndPlay(238); 
accumPiston_mc.gotoAndPlay(137);
SV6Leaks_mc.play();}
}

 

//Hyd Pressure Switch failure hyd press low light stays on
//boom/drogue hyd press light does not come on

 

hydPressSwTS_BTN.addEventListener(MouseEvent.CLICK, hydPressSWFail);

function hydPressSWFail(event: MouseEvent): void {
hydPressSWFail_mc.play();
hydPressSWfails = true;

if (hydOn == true) {
hydPressLowLight_mc.gotoAndPlay(36);}
}

 

//SV7 Fails no rewind

 

SV7TS_BTN.addEventListener(MouseEvent.CLICK, SV7Fail);

function SV7Fail(event: MouseEvent): void {
SV7Fail_mc.play();
SV7Fails = true;
}

 

//SV14 Fails no hyd power to the reel

 

SV14TS_BTN.addEventListener(MouseEvent.CLICK, SV14Fail);

function SV14Fail(event: MouseEvent): void {
SV14Fail_mc.play();
SV14Fails = true;
accumPiston_mc.gotoAndStop(1);
HydFlow_mc.gotoAndStop(1);
latchOpenClose_mc.gotoAndStop(1);
referenceFlow_mc.gotoAndStop(1);
BoostFlowMain_mc.gotoAndStop(1);
SV6SV11_mc.gotoAndStop(1);
ServoValvePress_mc.gotoAndStop(1);
stop();
}


//SV26 Fails to close leaks hose does not stay full trail creep mc
//SV26 Fails to open Response Test inop

 

SV26TS_BTN.addEventListener(MouseEvent.CLICK, SV26Fail);

function SV26Fail(event: MouseEvent): void {
SV26Fail_mc.play();
SV26Fails = true;

if ((currentFrame == 318) || (currentFrame == 674) || (currentFrame == 1066)) {
gotoAndPlay(1386);}
}


//S101 failure hose stops short rewind

 

S101TS_BTN.addEventListener(MouseEvent.CLICK, S101Fail);

function S101Fail(event: MouseEvent): void {
S101Fails = true;
S101Fail_mc.play();
}

 

//S102 no SV6 no tanker ready call reciever hose whip mc

 

S102TS_BTN.addEventListener(MouseEvent.CLICK, S102Fail);

function S102Fail(event: MouseEvent): void {
S102Fails = true;
hoseWhipFail = true;
S102Fail_mc.play();
}

 

//S103 no engaged light no fuel flow in auto-response

//S104 failure no stow indication hose reel not locked comes on with power off
//at frame 1 through frame 225, then allow trail to indicate
//at 1094 play barber pole again use frames to control or AS3

// S105 Failure

//at frame 1 through frame 225 then allow trail to indicate.

//at 1094 play barber pole again use frames to control or AS3

//latch cylinder failure latch does not open trail inhibited if in motion trailing have stop at
//currentFrame if in rewind have latch ratchet mc play

//S109 failure hose does not rewind

//S110 failure response test does not stop RESP INOP light comes on
//when SW105 hit unit goes back to full trail light on

TOPICS
ActionScript , Error , Missing feature
720
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

Community Expert , Sep 28, 2021 Sep 28, 2021

Hi.


There doesn't seem to be any syntax errors just looking at this code.

 

Do you mind sharing the FLA or at least some screenshots of your code?

 

Regards,
JC

Translate
Community Expert ,
Sep 28, 2021 Sep 28, 2021

Hi.


There doesn't seem to be any syntax errors just looking at this code.

 

Do you mind sharing the FLA or at least some screenshots of your code?

 

Regards,
JC

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 ,
Sep 28, 2021 Sep 28, 2021

Thanks JoaoCesar(!)

I didn't think there was anything wrong on the scripts debug identified.

I don't know if I can share the whole .fla.  I will see if I can snap shot the above for the real view.

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 ,
Oct 06, 2021 Oct 06, 2021
LATEST

There was a right brace problem, but not here where Debug was calling it out.

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