1084: Syntax error: expecting identifier before right
Any help / suggestions are appreciated.
Problem.
My client has sent me .swf files that are to be redone ... the problem is the original developer did not leave the .fla file so I am using a flash decompiler (*******)... I'm getting a bunch of funk code...
I am receiving one of several error messages... hope the first error will fix the others...
here is the error message(1):
CustomVideoPlayer.as, Line 196 1084: Syntax error: expecting identifier before rightbrace.
here is the action script:
line 194: var _loc_3:* = event.info.code;
line 195: switch(_loc_3 === "NetStream.Buffer.Full" ? (1) : (_loc_3 === "NetStream.Play.Start" ? (2) : (_loc_3 === "NetStream.Play.StreamNotFound" ? (3) : (_loc_3 === "NetStream.Play.Stop" ? (4) : (_loc_3 === "NetStream.Seek.Notify" ? (5) : (Jump to 23)
line 196: }// end try
I have been working on solving this problem all day with no solution... but great suggestions from developers.
I have changed the above statement from a "switch" to a "if" statement ... not too familiar with (Jump to ...) so I removed it because it just did not look correct ... and removed the colons to semi-colons ... but I am still receiving the same error message
"Re: 1084: Syntax error: expecting identifier before rightbrace."
I can post or email the project files if that will help.
I just can't spot any syntax error.
Well I pasted your code into Flash just to see if it could spot something...it shows up with 5 errors...which I'm not sure how to interpret but here..take a look and see if you see something suspicious.
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 1: Attribute used outside class.
private function netStatusHandler(event:NetStatusEvent):void {
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 3: A type identifier is expected after the ':'.
var event:* = param1;
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 8: 'case' statements can only be used inside of a 'switch' statement
case "NetConnection.Connect.Success" :
**Error** Scene=Scene 1, layer=Layer 2, frame=1:Line 10: 'case' statements can only be used inside of a 'switch' statement
case "NetStream.Play.Start" :
Total ActionScript Errors: 5 Reported Errors: 5
Maybe with a fuller view you can better interpret these errors
EfV
Bookmarks