Copy link to clipboard
Copied
Hi folks
I am a real greenhorn here. I have just upgraded from CS3 to CS6 and had to edit a *.fla file in Flash CC. I saved it and exported as a *.swf I now have about 40 compiler errors all of the same format "1084: Syntax error: expecting rightparen before and"
This is typical of the scenario
Location
Scene 1, Layer 'buttons', Frame 1, Line1. Column 17
1 if (_ymouse>202 and _ymouse502) {
Is it expecting a close of brackets before and ie if(_ymouse>202)
Another example:
1 if (_xmouse>7 and _xmouse<24 and _ymouse<235 and text1.y<113
2 {text1.y_y+=4}
3 if _xmouse>33 and _xmouse50 and _ymouse<235 and text1.y>30)
4 {text1.y_y=4}
In this group, relating to Symbol definitions on a page labelled services-page it has the syntax error for Line 1, column 17 expecting rightparen before and, and also for Line 3 at column 16, just before the and.
Surely adding a bracket in that group of conditions before an "and" will mess up the "if" condition...
Any help will be graetfully appreciated! (I can do screen grabs if it helps!)
there's no keyword 'and'. use the double ampersand:
if(whatever && whateverelse)
p.s. there's no 'or', either. use double pipe (uppercase backslash), ||
Copy link to clipboard
Copied
there's no keyword 'and'. use the double ampersand:
if(whatever && whateverelse)
p.s. there's no 'or', either. use double pipe (uppercase backslash), ||
Copy link to clipboard
Copied
Hi Thanks for that. I will give it a go and see what happens! I will save original file as a back up then make changes.
Stephen
Copy link to clipboard
Copied
you're welcome.
Copy link to clipboard
Copied
Hi kglad
I changed all the "and" in the 42 compiler errors to && but that has thrown up another set of conflicts. This time the compiler error description is
1120: Access of undefined property _ymouse (or _xmouse) (see my examples in original post)
The original fla file was created in ActionScript2.0 (not by me). It was problably a template flash file that was edited to produce the fla we have now, rather than coded. A message did pop up that the scripts neede to be converted to ActionScript3.0
My Google search for how to do that shows that really the script would need to be manually converted in AS3.0, way beyond my skill level at the moment.
If you think there is a fix for that 1120 error, please suggest it, but at the end of the day I have CS3 on another machine. I can do the fla editing I need in that and hopefully Dreamweaver CS6 will stlll upload it. It is only if I try to edit it in Flash Professional CC that I am hitting script issues where it wants to convert it to AS3..
Stephen
Copy link to clipboard
Copied
_xmouse should be mouseX and _ymouse should be mouseY.
Copy link to clipboard
Copied
Adobe Animate is my school course - the support has said to come here, but I am not seeing the exact same problem, but similar syntax errors with trying to run this project. Can anyone help?
Copy link to clipboard
Copied
those frame labels should be strings. ie, replace asterisks with quotes.
Copy link to clipboard
Copied
how to fix this, sir! It's for my project
Copy link to clipboard
Copied
remove everything to the left of diveBtn