Skip to main content
Participant
January 8, 2019
解決済み

SyntaxError: missing ) after argument list

  • January 8, 2019
  • 返信数 3.
  • 5193 ビュー

I made a logo animation in HTML5 Canvas

(I already uploaded a version here)

I made some changes and for some reason I can't test/export the file anymore, when I try I get this error: "A JavaScript error occured. SyntaxError: missing ) after argument list"

I've checked my code, but there doesn't seem to be anything wrong with it. (I don't know JavaScript, but I used a website and the bit of js knowledge I have)

I also tried to delete all the code, but it still didn't work.

What should I do?

If anyone wants it, this is the code:

(As far as I know, I didn't change the code since the last time it worked)

this.stop(0);

var frequency = 3;

stage.enableMouseOver(frequency);

this.hitbox.addEventListener("mouseover", fl_ClickToGoToAndPlayFromFrame.bind(this));

function fl_ClickToGoToAndPlayFromFrame() {

this.gotoAndPlay(0);

}

this.hitbox.addEventListener("click", fl_ClickToGoToWebPage_2);

function fl_ClickToGoToWebPage_2() {

window.open("http://klankiskoning.be", "_parent");

}

このトピックへの返信は締め切られました。
解決に役立った回答 SomersProductions

I fixed it!

I made a new file, and copied all layers into it.

The problem was caused by my custom loading screen (It happened again, but this time I had an extra save)

返信数 3

avid_body16B8
Legend
April 17, 2020

I am wondering if you are working from a synched google drive.

Here is what I found when I get the error shown below. Most of the time I get this error message but also if I try another file I get a message concerning the publish path. 

1 - the publish path has changed to a long path starting with square brackets and [C:\\user\\\\....\Google drive\foldername\]

2-  the correct path should be ../foldername/index

3-  when correcting the path it is possible to publish.

 

It seems that when closing the file the path is changed to the long address.   (I do not give the whole address here for privacy reasons).

This is a new error since this never happened in the past. It is pretty recent. 

avid_body16B8
Legend
April 16, 2020

The error does not seem to come from a custom loading screen. I am getting the same error more and more often now and I do not have any custom screen.

As you mentioned tho, I did the same thing and created a new file and copy pasted my layers from the file with the error and it works every time. 

I will report this bug today.

SomersProductions作成者解決!
Participant
January 8, 2019

I fixed it!

I made a new file, and copied all layers into it.

The problem was caused by my custom loading screen (It happened again, but this time I had an extra save)