SyntaxError: missing ) after argument list
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");
}
