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

1084: Syntax error: expecting rightparen

New Here ,
Mar 21, 2014 Mar 21, 2014

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!)

TOPICS
ActionScript

Views

4.9K

Translate

Translate

Report

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 , Mar 21, 2014 Mar 21, 2014

there's no keyword 'and'.  use the double ampersand:

if(whatever && whateverelse)

p.s. there's no 'or', either.  use double pipe (uppercase backslash), ||

Votes

Translate

Translate
Community Expert ,
Mar 21, 2014 Mar 21, 2014

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), ||

Votes

Translate

Translate

Report

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
New Here ,
Mar 21, 2014 Mar 21, 2014

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

Votes

Translate

Translate

Report

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 Expert ,
Mar 21, 2014 Mar 21, 2014

Copy link to clipboard

Copied

you're welcome.

Votes

Translate

Translate

Report

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
New Here ,
Mar 21, 2014 Mar 21, 2014

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

Votes

Translate

Translate

Report

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 Expert ,
Mar 21, 2014 Mar 21, 2014

Copy link to clipboard

Copied

_xmouse should be mouseX and _ymouse should be mouseY.

Votes

Translate

Translate

Report

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
New Here ,
Feb 02, 2023 Feb 02, 2023

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?

Ethan28228182yxvz_1-1675355278688.png

 

 

Votes

Translate

Translate

Report

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 Expert ,
Feb 02, 2023 Feb 02, 2023

Copy link to clipboard

Copied

those frame labels should be strings. ie, replace asterisks with quotes.

Votes

Translate

Translate

Report

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
New Here ,
May 25, 2023 May 25, 2023

Copy link to clipboard

Copied

Jezer30067987z2uo_0-1685034665886.png

how to fix this, sir! It's for my project

 

Votes

Translate

Translate

Report

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 Expert ,
May 25, 2023 May 25, 2023

Copy link to clipboard

Copied

LATEST

remove everything to the left of diveBtn

Votes

Translate

Translate

Report

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